SQLite4
Check-in [f392aec8a5977399b2802b308a696329543c1b6b]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:f392aec8a5977399b2802b308a696329543c1b6b
Date: 2014-03-18 19:29:48
User: drh
Comment:Fix an important typo in the varint decoder documentation.
Tags And Properties
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to www/varint.wiki

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<h2>Decode</h2>

  *  If A0 is between 0 and 240 inclusive, then the result is the value of A0.

  *  If A0 is between 241 and 248 inclusive, then the result is
     240+256*(A0-241)+A1.

  *  If A0 is 249 then the result is 2287+256*A1+A2.

  *  If A0 is 250 then the result is A1..A3 as a 3-byte big-ending integer.

  *  If A0 is 251 then the result is A1..A4 as a 4-byte big-ending integer.

  *  If A0 is 252 then the result is A1..A5 as a 5-byte big-ending integer.








|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<h2>Decode</h2>

  *  If A0 is between 0 and 240 inclusive, then the result is the value of A0.

  *  If A0 is between 241 and 248 inclusive, then the result is
     240+256*(A0-241)+A1.

  *  If A0 is 249 then the result is 2288+256*A1+A2.

  *  If A0 is 250 then the result is A1..A3 as a 3-byte big-ending integer.

  *  If A0 is 251 then the result is A1..A4 as a 4-byte big-ending integer.

  *  If A0 is 252 then the result is A1..A5 as a 5-byte big-ending integer.