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:

    “Anti-Nebraska, Know-Nothings, and general disgust with the powers that be, have carried this county [Hamilton County, Ohio] by between seven and eight thousand majority! How people do hate Catholics, and what a happiness it was to show it in what seemed a lawful and patriotic manner.”
    —Rutherford Birchard Hayes (1822–1893)

    “The syntactic component of a grammar must specify, for each sentence, a deep structure that determines its semantic interpretation and a surface structure that determines its phonetic interpretation.”
    —Noam Chomsky (b. 1928)