SQLite4
Check-in [7df97b5937]
Not logged in

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

Overview
Comment:Fix typo in comments. No code changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7df97b5937933ee3f9af946346b2c1695671f2fb
User & Date: drh 2015-08-15 18:03:50
Context
2016-07-28
13:44
Fix typo in the LSM documentation. check-in: c2d3bd7694 user: drh tags: trunk
2015-08-15
18:03
Fix typo in comments. No code changes. check-in: 7df97b5937 user: drh tags: trunk
2014-09-19
18:48
Fix an assert() in lsm_shared.c. check-in: 90c09b0451 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/varint.c.

    34     34   ** If A0 is between 0 and 240 inclusive, then the result is the value of A0.
    35     35   ** 
    36     36   ** If A0 is between 241 and 248 inclusive, then the result is
    37     37   ** 240+256*(A0-241)+A1.
    38     38   ** 
    39     39   ** If A0 is 249 then the result is 2288+256*A1+A2.
    40     40   ** 
    41         -** If A0 is 250 then the result is A1..A3 as a 3-byte big-ending integer.
           41  +** If A0 is 250 then the result is A1..A3 as a 3-byte big-endian integer.
    42     42   ** 
    43         -** If A0 is 251 then the result is A1..A4 as a 4-byte big-ending integer.
           43  +** If A0 is 251 then the result is A1..A4 as a 4-byte big-endian integer.
    44     44   ** 
    45         -** If A0 is 252 then the result is A1..A5 as a 5-byte big-ending integer.
           45  +** If A0 is 252 then the result is A1..A5 as a 5-byte big-endian integer.
    46     46   ** 
    47         -** If A0 is 253 then the result is A1..A6 as a 6-byte big-ending integer.
           47  +** If A0 is 253 then the result is A1..A6 as a 6-byte big-endian integer.
    48     48   ** 
    49         -** If A0 is 254 then the result is A1..A7 as a 7-byte big-ending integer.
           49  +** If A0 is 254 then the result is A1..A7 as a 7-byte big-endian integer.
    50     50   ** 
    51         -** If A0 is 255 then the result is A1..A8 as a 8-byte big-ending integer.
           51  +** If A0 is 255 then the result is A1..A8 as a 8-byte big-endian integer.
    52     52   ** 
    53     53   ** ENCODE
    54     54   ** 
    55     55   ** Let the input value be V.
    56     56   ** 
    57     57   ** If V<=240 then output a single by A0 equal to V.
    58     58   ** 
................................................................................
    60     60   ** 
    61     61   ** If V<=67823 then output A0 as 249, A1 as (V-2288)/256, and A2 
    62     62   ** as (V-2288)%256.
    63     63   ** 
    64     64   ** If V<=16777215 then output A0 as 250 and A1 through A3 as a big-endian
    65     65   ** 3-byte integer.
    66     66   ** 
    67         -** If V<=4294967295 then output A0 as 251 and A1..A4 as a big-ending
           67  +** If V<=4294967295 then output A0 as 251 and A1..A4 as a big-endian
    68     68   ** 4-byte integer.
    69     69   ** 
    70         -** If V<=1099511627775 then output A0 as 252 and A1..A5 as a big-ending
           70  +** If V<=1099511627775 then output A0 as 252 and A1..A5 as a big-endian
    71     71   ** 5-byte integer.
    72     72   ** 
    73         -** If V<=281474976710655 then output A0 as 253 and A1..A6 as a big-ending
           73  +** If V<=281474976710655 then output A0 as 253 and A1..A6 as a big-endian
    74     74   ** 6-byte integer.
    75     75   ** 
    76     76   ** If V<=72057594037927935 then output A0 as 254 and A1..A7 as a
    77         -** big-ending 7-byte integer.
           77  +** big-endian 7-byte integer.
    78     78   ** 
    79         -** Otherwise then output A0 as 255 and A1..A8 as a big-ending 8-byte integer.
           79  +** Otherwise then output A0 as 255 and A1..A8 as a big-endian 8-byte integer.
    80     80   ** 
    81     81   ** SUMMARY
    82     82   ** 
    83     83   **    Bytes    Max Value    Digits
    84     84   **    -------  ---------    ---------
    85     85   **      1      240           2.3
    86     86   **      2      2287          3.3