Class ByteWriter

java.lang.Object
io.datarouter.bytes.ByteWriter

public class ByteWriter extends Object
  • Constructor Details

    • ByteWriter

      public ByteWriter(int pageSize)
  • Method Details

    • length

      public int length()
    • trimmedPages

      public byte[][] trimmedPages()
    • concat

      public byte[] concat()
    • concat

      public byte[] concat(int from, int to)
    • crc32

      public long crc32()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • bytes

      public ByteWriter bytes(byte[] value)
    • bytes

      public ByteWriter bytes(byte[] value, int from, int to)
    • varBytes

      public ByteWriter varBytes(byte[] value)
    • booleanByte

      public ByteWriter booleanByte(boolean value)
    • rawInt

      public ByteWriter rawInt(int value)
    • rawInts

      public ByteWriter rawInts(int[] values)
    • varInt

      public ByteWriter varInt(int value)
    • comparableLong

      public ByteWriter comparableLong(long value)
    • rawLong

      public ByteWriter rawLong(long value)
    • rawLongs

      public ByteWriter rawLongs(long[] values)
    • varLong

      public ByteWriter varLong(long value)
    • varUtf8

      public ByteWriter varUtf8(String value)
    • comparableUtf8

      public ByteWriter comparableUtf8(String value)