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.
| 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:
“According to the historian, they escaped as by a miracle all roving bands of Indians, and reached their homes in safety, with their trophies, for which the General Court paid them fifty pounds. The family of Hannah Dustan all assembled alive once more, except the infant whose brains were dashed out against the apple tree, and there have been many who in later time have lived to say that they have eaten of the fruit of that apple tree.”
—Henry David Thoreau (18171862)
“A structure becomes architectural, and not sculptural, when its elements no longer have their justification in nature.”
—Guillaume Apollinaire (18801918)