Variable-length integer encoding used by the Hytale protocol.
Returns VarInt byte length at index, or -1 if incomplete.
Peeks a VarInt value at index without changing reader index.
Reads a VarInt from buf.
Computes encoded size for value.
Writes value as a VarInt into buf.