Package com.dylibso.chicory.wasm
Class Encoding
- java.lang.Object
-
- com.dylibso.chicory.wasm.Encoding
-
public final class Encoding extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_VARINT_LEN_32static intMAX_VARINT_LEN_64
-
Constructor Summary
Constructors Constructor Description Encoding()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longreadSigned32Leb128(ByteBuffer byteBuffer)Reads an unsigned integer frombyteBuffer.static longreadSigned64Leb128(ByteBuffer byteBuffer)static longreadUnsignedLeb128(ByteBuffer byteBuffer, int maxVarInt)Reads an unsigned integer frombyteBuffer.
-
-
-
Field Detail
-
MAX_VARINT_LEN_32
public static final int MAX_VARINT_LEN_32
- See Also:
- Constant Field Values
-
MAX_VARINT_LEN_64
public static final int MAX_VARINT_LEN_64
- See Also:
- Constant Field Values
-
-
Method Detail
-
readUnsignedLeb128
public static long readUnsignedLeb128(ByteBuffer byteBuffer, int maxVarInt)
Reads an unsigned integer frombyteBuffer.
-
readSigned32Leb128
public static long readSigned32Leb128(ByteBuffer byteBuffer)
Reads an unsigned integer frombyteBuffer.
-
readSigned64Leb128
public static long readSigned64Leb128(ByteBuffer byteBuffer)
-
-