Package io.datarouter.bytes
Class ByteWriter
java.lang.Object
io.datarouter.bytes.ByteWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanByte(boolean value) bytes(byte[] value) bytes(byte[] value, int from, int to) comparableLong(long value) comparableUtf8(String value) byte[]concat()byte[]concat(int from, int to) longcrc32()intlength()rawInt(int value) rawInts(int[] values) rawLong(long value) rawLongs(long[] values) toString()byte[][]varBytes(byte[] value) varInt(int value) varLong(long 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
-