Anonymous user
Talk:Variable-length quantity: Difference between revisions
→Vlq octet order
(→Vlq octet order: Eh?) |
|||
Line 9:
:I think, in a '''mixed data''' stream for storage or transmission, the VLQ has to be like a big ending number , so that the least significant octet act as a terminal, if no other information telling the length of the VLQ. If the stream contain only VLQ, the least significant octet can sent first. [[User:Dingowolf|dingowolf]] 16:27, 15 October 2010 (UTC)
:What? I read the docs as saying that it is the LSO that has its low bit cleared, making perfect sense as a terminator. –[[User:Dkf|Donal Fellows]] 13:48, 17 October 2010 (UTC)
I interpret an 8-to-14 bit integer being sent as the first and second bytes being, in order:
{| class="wikitable" style="font-family: monospace, courier, courier new; font-size: 110%;"
|+ VLQ Octet #0
! 7
! 6
! 5
! 4
! 3
! 2
! 1
! 0
|-
!
! 2<sup>6</sup>
! 2<sup>5</sup>
! 2<sup>4</sup>
! 2<sup>3</sup>
! 2<sup>2</sup>
! 2<sup>1</sup>
! 2<sup>0</sup>
|-
| align="center"|1
| colspan="7" align="center"|B<sub>n</sub>
|}
{| class="wikitable" style="font-family: monospace, courier, courier new; font-size: 110%;"
|+ VLQ Octet #1
! 7
! 6
! 5
! 4
! 3
! 2
! 1
! 0
|-
! 2<sup>14</sup>
! 2<sup>13</sup>
! 2<sup>12</sup>
! 2<sup>11</sup>
! 2<sup>10</sup>
! 2<sup>9</sup>
! 2<sup>8</sup>
! 2<sup>7</sup>
|-
| align="center"|0
| colspan="7" align="center"|B<sub>n</sub>
|}
i.e. the first byte/octet through would have its high bit set and the last octet would not. --[[User:Paddy3118|Paddy3118]] 17:17, 17 October 2010 (UTC)
|