Package io.datarouter.bytes
Class ByteWriter
java.lang.Object
io.datarouter.bytes.ByteWriter
public class ByteWriter extends Object
-
Constructor Summary
Constructors Constructor Description ByteWriter(int pageSize) -
Method Summary
Modifier and Type Method Description ByteWriterbooleanByte(boolean value)ByteWriterbytes(byte[] value)ByteWriterbytes(byte[] value, int from, int to)ByteWritercomparableLong(long value)ByteWritercomparableUtf8(String value)byte[]concat()byte[]concat(int from, int to)longcrc32()intlength()ByteWriterrawInt(int value)ByteWriterrawInts(int[] values)ByteWriterrawLong(long value)ByteWriterrawLongs(long[] values)StringtoString()byte[][]trimmedPages()ByteWritervarBytes(byte[] value)ByteWritervarInt(int value)ByteWritervarLong(long value)ByteWritervarUtf8(String value)
-
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
-
bytes
-
bytes
-
varBytes
-
booleanByte
-
rawInt
-
rawInts
-
varInt
-
comparableLong
-
rawLong
-
rawLongs
-
varLong
-
varUtf8
-
comparableUtf8
-