Class BinaryDecoder
java.lang.Object
com.oracle.truffle.js.codec.BinaryDecoder
Utility for decoding values from a ByteBuffer.
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryDecoder(ByteBuffer buffer) BinaryDecoder(ByteBuffer buffer, int position) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]doubleintgetInt()Reads a signed variable byte size encoded value that is known to fit into the range of int.intgetInt32()longgetInt64()longgetLong()com.oracle.truffle.api.strings.TruffleStringintgetUInt()Reads an unsigned variable byte size encoded value that is known to fit into the range of int.boolean
-
Constructor Details
-
BinaryDecoder
-
BinaryDecoder
-
-
Method Details
-
getInt
public int getInt()Reads a signed variable byte size encoded value that is known to fit into the range of int. -
getUInt
public int getUInt()Reads an unsigned variable byte size encoded value that is known to fit into the range of int. -
getLong
public long getLong() -
getString
public com.oracle.truffle.api.strings.TruffleString getString() -
getByteArray
public byte[] getByteArray() -
getBigInteger
-
getDouble
public double getDouble() -
getInt64
public long getInt64() -
getInt32
public int getInt32() -
hasRemaining
public boolean hasRemaining() -
getBuffer
-