Class BinaryDecoder

java.lang.Object
com.oracle.truffle.js.codec.BinaryDecoder

public final class BinaryDecoder extends Object
Utility for decoding values from a ByteBuffer.
  • Constructor Details

    • BinaryDecoder

      public BinaryDecoder(ByteBuffer buffer, int position)
    • BinaryDecoder

      public BinaryDecoder(ByteBuffer buffer)
  • 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

      public BigInteger getBigInteger()
    • getDouble

      public double getDouble()
    • getInt64

      public long getInt64()
    • getInt32

      public int getInt32()
    • hasRemaining

      public boolean hasRemaining()
    • getBuffer

      public ByteBuffer getBuffer()