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

Overview
Comment:Fix an important typo in the varint decoder documentation.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f392aec8a5977399b2802b308a696329543c1b6b
User & Date: drh 2014-03-18 19:29:48.693
Context
2014-05-07
09:49
Fix a memory leak in LSM. check-in: 8a39847daf user: dan tags: trunk
2014-03-18
19:29
Fix an important typo in the varint decoder documentation. check-in: f392aec8a5 user: drh tags: trunk
2014-02-22
19:54
Add other bt optimizations. Fix a problem in mutex_noop.c. check-in: 1ecbf355e3 user: dan tags: trunk
Changes
Unified Diff 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.