mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Comment changes (CVS 308)
FossilOrigin-Name: 2d2ad264aad6fbdcef586e73d750e3fde842252f
This commit is contained in:
13
src/btree.c
13
src/btree.c
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.38 2001/11/07 14:22:00 drh Exp $
|
||||
** $Id: btree.c,v 1.39 2001/11/10 13:51:08 drh Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** For a detailed discussion of BTrees, refer to
|
||||
@@ -175,10 +175,17 @@ struct CellHdr {
|
||||
Pgno leftChild; /* Child page that comes before this cell */
|
||||
u16 nKey; /* Number of bytes in the key */
|
||||
u16 iNext; /* Index in MemPage.u.aDisk[] of next cell in sorted order */
|
||||
u8 nKeyHi;
|
||||
u8 nDataHi;
|
||||
u8 nKeyHi; /* Upper 8 bits of key size for keys larger than 64K bytes */
|
||||
u8 nDataHi; /* Upper 8 bits of data size when the size is more than 64K */
|
||||
u16 nData; /* Number of bytes of data */
|
||||
};
|
||||
|
||||
/*
|
||||
** The key and data size are split into a lower 16-bit segment and an
|
||||
** upper 8-bit segment in order to pack them together into a smaller
|
||||
** space. The following macros reassembly a key or data size back
|
||||
** into an integer.
|
||||
*/
|
||||
#define NKEY(h) (h.nKey + h.nKeyHi*65536)
|
||||
#define NDATA(h) (h.nData + h.nDataHi*65536)
|
||||
|
||||
|
Reference in New Issue
Block a user