Class BinaryEncoder

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

public class BinaryEncoder extends Object
Utility for encoding values to a ByteBuffer.
  • Constructor Details

    • BinaryEncoder

      public BinaryEncoder()
  • Method Details

    • getBuffer

      public ByteBuffer getBuffer()
    • putU1

      protected void putU1(long value)
    • putInt

      public void putInt(int value)
    • putUInt

      public void putUInt(int value)
    • putLong

      public void putLong(long value)
    • putDouble

      public void putDouble(double value)
    • putInt64

      public void putInt64(long value)
    • putString

      public void putString(com.oracle.truffle.api.strings.TruffleString value)
    • putByteArray

      public void putByteArray(byte[] value)
    • putBigInteger

      public void putBigInteger(BigInteger value)
    • putInt32

      public void putInt32(int value)
    • getPosition

      public int getPosition()