GrowableByteArrayDataOutput
Properties
Functions
Return the memory usage of this object in bytes. Negative values are illegal.
Writes an array of bytes.
Encode integers using group-varint. It uses VInt to encode tail values that are not enough for a group.
Encode integers using group-varint. It uses VInt to encode tail values that are not enough for a group. we need a long[] because this is what postings are using, all longs are actually required to be integers.
Writes a String map.
Writes a String set.
Writes a short as two bytes (LE byte order).
Writes a string.
Writes all of our bytes to the target DataOutput.
Copies bytes from this store to a target byte array.
Writes an long in a variable-length format. Writes between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported.
Write a zig-zag-encoded .writeVLong long. Writes between one and ten bytes. This is typically useful to write small signed ints.