# Class: com.pnfsoftware.jeb.util.encoding.LEB128

Decoding methods for LEB128\-encoded integers from byte arrays. All methods raise a [BadEncodingException](BadEncodingException) on error.

## Constructor: LEB128


## Static Method: read_int16
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read a signed 16\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

## Static Method: read_int32
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read a signed 32\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

## Static Method: read_int64
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read a signed 64\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed

## Static Method: read_int7
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read a signed 7\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

## Static Method: read_uint1
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read an unsigned 1\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

## Static Method: read_uint16
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read an unsigned 16\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

## Static Method: read_uint32
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read an unsigned 32\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

## Static Method: read_uint64
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read an unsigned 64\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed

## Static Method: read_uint7
- parameter: `data`, type: `byte[]`
- parameter: `pos`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.LEB128.Value`

Description: Read an unsigned 7\-bit LEB128 value.
parameter: data: input bytes
parameter: pos: offset of the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or out of range

