Class ByteBuffers

java.lang.Object
org.apache.iceberg.util.ByteBuffers

public class ByteBuffers extends Object
  • Method Details

    • toByteArray

      public static byte[] toByteArray(ByteBuffer buffer)
    • reuse

      public static ByteBuffer reuse(ByteBuffer reuse, int length)
    • copy

      public static ByteBuffer copy(ByteBuffer buffer)
    • writeByte

      public static void writeByte(ByteBuffer buffer, int value, int offset)
    • writeLittleEndianUnsigned

      public static void writeLittleEndianUnsigned(ByteBuffer buffer, int value, int offset, int size)
    • readLittleEndianInt8

      public static byte readLittleEndianInt8(ByteBuffer buffer, int offset)
    • readLittleEndianInt16

      public static short readLittleEndianInt16(ByteBuffer buffer, int offset)
    • readByte

      public static int readByte(ByteBuffer buffer, int offset)
    • readLittleEndianUnsigned

      public static int readLittleEndianUnsigned(ByteBuffer buffer, int offset, int size)
    • readLittleEndianInt32

      public static int readLittleEndianInt32(ByteBuffer buffer, int offset)
    • readLittleEndianInt64

      public static long readLittleEndianInt64(ByteBuffer buffer, int offset)