Package com.dylibso.chicory.wasm
Class Encoding
- java.lang.Object
-
- com.dylibso.chicory.wasm.Encoding
-
public final class Encoding extends Object
-
-
Constructor Summary
Constructors Constructor Description Encoding()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcomputeLeb128Size(int value)Computes the number of bytes required to encode a given value as LEB128static longreadSigned32Leb128(ByteBuffer byteBuffer)Reads an unsigned integer frombyteBuffer.static longreadSigned64Leb128(ByteBuffer byteBuffer)static longreadUnsignedLeb128(ByteBuffer byteBuffer)Reads an unsigned integer frombyteBuffer.
-
-
-
Method Detail
-
readUnsignedLeb128
public static long readUnsignedLeb128(ByteBuffer byteBuffer)
Reads an unsigned integer frombyteBuffer.
-
readSigned32Leb128
public static long readSigned32Leb128(ByteBuffer byteBuffer)
Reads an unsigned integer frombyteBuffer.
-
readSigned64Leb128
public static long readSigned64Leb128(ByteBuffer byteBuffer)
-
computeLeb128Size
public static int computeLeb128Size(int value)
Computes the number of bytes required to encode a given value as LEB128- Parameters:
value-- Returns:
-
-