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

Read and write LEB128\-encoded integers. A 4\-byte integer is encoded on 1 to 5 bytes. 

 For decoding only on byte arrays, use the highest\-level utility methods in [LEB128](LEB128).

## Constructor: IntegerLEB128


## Static Method: decodeULEB128
- parameter: `input`, type: `java.io.InputStream`
- return type: `com.pnfsoftware.jeb.util.encoding.IntegerLEB128.DecodedInt`

Description: Read an unsigned LEB128\-encoded 32\-bit integer and its encoded size.
parameter: input: input stream positioned at the encoded value
return: decoded value and encoded byte length
throws: if the value is malformed or cannot be fully read

## Static Method: readULEB128
- parameter: `input`, type: `java.io.InputStream`
- return type: `int`

Description: Read an unsigned LEB128\-encoded 32\-bit integer.
parameter: input: input stream positioned at the encoded value
return: decoded value
throws: if the value is malformed or cannot be fully read

## Static Method: writeSLEB128
- parameter: `out`, type: `java.io.OutputStream`
- parameter: `v`, type: `int`

Description: Write a signed LEB128\-encoded 32\-bit integer.
parameter: out: output stream
parameter: v: value to encode
throws: if the output stream cannot be written

## Static Method: writeULEB128
- parameter: `out`, type: `java.io.OutputStream`
- parameter: `v`, type: `int`

Description: Write an unsigned LEB128\-encoded 32\-bit integer.
parameter: out: output stream
parameter: v: value to encode
throws: if the output stream cannot be written

