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

Read and write LEB128\-encoded longs. An 8\-byte long is encoded on 1 to 10 bytes. 

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

## Constructor: LongLEB128


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

Description: Read an unsigned LEB128\-encoded 64\-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: `long`

Description: Read an unsigned LEB128\-encoded 64\-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: `long`

Description: Write a signed LEB128\-encoded 64\-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: `long`

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

