public class

LEB128

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.encoding.LEB128

Class Overview

Decoding methods for LEB128-encoded integers from byte arrays. All methods raise a BadEncodingException on error.

Summary

Nested Classes
class LEB128.Value Decoded value along with the encoded length in bytes. 
Public Constructors
LEB128()
Public Methods
static LEB128.Value read_int16(byte[] data, int pos)
static LEB128.Value read_int32(byte[] data, int pos)
static LEB128.Value read_int64(byte[] data, int pos)
static LEB128.Value read_int7(byte[] data, int pos)
static LEB128.Value read_uint1(byte[] data, int pos)
static LEB128.Value read_uint16(byte[] data, int pos)
static LEB128.Value read_uint32(byte[] data, int pos)
static LEB128.Value read_uint64(byte[] data, int pos)
static LEB128.Value read_uint7(byte[] data, int pos)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LEB128 ()

Public Methods

public static LEB128.Value read_int16 (byte[] data, int pos)

public static LEB128.Value read_int32 (byte[] data, int pos)

public static LEB128.Value read_int64 (byte[] data, int pos)

public static LEB128.Value read_int7 (byte[] data, int pos)

public static LEB128.Value read_uint1 (byte[] data, int pos)

public static LEB128.Value read_uint16 (byte[] data, int pos)

public static LEB128.Value read_uint32 (byte[] data, int pos)

public static LEB128.Value read_uint64 (byte[] data, int pos)

public static LEB128.Value read_uint7 (byte[] data, int pos)