Class VByte

java.lang.Object
org.eclipse.rdf4j.rio.hdt.VByte

public class VByte extends Object
Variable byte encoding for numbers.

A variable number of bytes is used to encode (unsigned) numeric values, the first bit (MSB) of each byte indicates if there are more bytes to read, the other 7 bits are used to encode the value.

In this implementation, the MSB is set to 1 if this byte is the last one.

E.g: 10000001 is value 1, 00000001 10000001 is 128 (decimal). Note that the value is stored little-endian, so in this example 10000001 00000001.

Author:
Bart.Hanssens
See Also: