Variable-length Quantity - General Structure

General Structure

The encoding assumes an octet (an eight-bit byte) where the most significant bit (MSB), also commonly known as the sign bit, is reserved to indicate whether another VLQ octet follows.

VLQ Octet
7 6 5 4 3 2 1 0
27 26 25 24 23 22 21 20
A Bn

If A is 0, then this is the last VLQ octet of the integer. If A is 1, then another VLQ octet follows.

B is a 7-bit number and n is the position of the VLQ octet where B0 is the least significant. The VLQ octets are arranged most significant first in a stream.

Read more about this topic:  Variable-length Quantity

Famous quotes containing the words general and/or structure:

    We raised a simple prayer
    Before we left the spot,
    That in the general mowing
    That place might be forgot;
    Or if not all so favored,
    Obtain such grace of hours
    That none should mow the grass there
    While so confused with flowers.
    Robert Frost (1874–1963)

    A special feature of the structure of our book is the monstrous but perfectly organic part that eavesdropping plays in it.
    Vladimir Nabokov (1899–1977)