Export (0) Print
Expand All

3.4 Sample Leaf NBT Page

Office

The following is a binary dump of a sample leaf NBT entry (section 2.2.2.7.7.4). The page itself is 512 bytes in size, including the PAGETRAILER structure (section 2.2.2.7.1), which is indicated by the 16 bytes at the end of the page. The NBTENTRY structures start from the very beginning of the page, and the 4 bytes before the PAGETRAILER are the 4 byte values of the BTPAGE structure (section 2.2.2.7.7.1).

In this particular example, this is a leaf NBT page (cLevel=0), with 0x0E NBENTRY items (cEnt=0x0E), each of size 0x20 bytes (cbEnt=0x20), and the maximum capacity of the page is 0x0F NBTENTRY structures (cEntMax=0x0F).

Note that the actual size of the NBTENTRY is only 0x1C bytes, but the cbEnt field in the BTPAGE is 0x20 instead. Implementations will always use the length specified in the cbEnt field, regardless of the native size of the actual data records. Also note that the unused bytes can contain any value as long as the CRC in the PAGETRAILER match its contents.

0000000000007000  0F 06 00 00 00 00 00 00-0C 00 00 00 00 00 00 00  *................*
0000000000007010  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007020  10 06 00 00 00 00 00 00-10 00 00 00 00 00 00 00  *................*
0000000000007030  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007040  2B 06 00 00 00 00 00 00-30 00 00 00 00 00 00 00  *+.......0.......*
0000000000007050  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007060  4C 06 00 00 00 00 00 00-1C 00 00 00 00 00 00 00  *L...............*
0000000000007070  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007080  71 06 00 00 00 00 00 00-18 00 00 00 00 00 00 00  *q...............*
0000000000007090  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
00000000000070A0  92 06 00 00 00 00 00 00-14 00 00 00 00 00 00 00  *................*
00000000000070B0  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
00000000000070C0  B6 06 00 00 00 00 00 00-24 00 00 00 00 00 00 00  *........$.......*
00000000000070D0  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
00000000000070E0  D7 06 00 00 00 00 00 00-28 00 00 00 00 00 00 00  *........(.......*
00000000000070F0  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007100  F8 06 00 00 00 00 00 00-2C 00 00 00 00 00 00 00  *........,.......*
0000000000007110  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007120  01 0C 00 00 00 00 00 00-48 00 00 00 00 00 00 00  *........H.......*
0000000000007130  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007140  22 80 00 00 00 00 00 00-54 00 00 00 00 00 00 00  *".......T.......*
0000000000007150  00 00 00 00 00 00 00 00-22 01 00 00 02 00 00 00  *........".......*
0000000000007160  2D 80 00 00 00 00 00 00-04 00 00 00 00 00 00 00  *-...............*
0000000000007170  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
0000000000007180  2E 80 00 00 00 00 00 00-08 00 00 00 00 00 00 00  *................*
0000000000007190  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
00000000000071A0  2F 80 00 00 00 00 00 00-0C 00 00 00 00 00 00 00  */...............*
00000000000071B0  00 00 00 00 00 00 00 00-00 00 00 00 02 00 00 00  *................*
00000000000071C0  42 80 00 00 00 00 00 00-64 00 00 00 00 00 00 00  *B.......d.......*
00000000000071D0  00 00 00 00 00 00 00 00-22 01 00 00 02 00 00 00  *........".......*
00000000000071E0  00 00 00 00 00 00 00 00-0E 0F 20 00 00 00 00 00  *.......... .....*
00000000000071F0  81 81 6B 70 49 19 C2 39-6B 00 00 00 00 00 00 00  *..kpI..9k.......*

The following 16 bytes of the preceding binary dump of a sample leaf NBT entry indicate the PAGETRAILER structure (section 2.2.2.7.1).

00000000000071F0  81 81 6B 70 49 19 C2 39-6B 00 00 00 00 00 00 00  *..kpI..9k.......*

The 4 bytes (03 14 18 01) of the preceding binary dump of a sample leaf NBT entry indicate the BTPAGE structure (section 2.2.2.7.7.1).

00000000000071E0  00 00 00 00 00 00 00 00-0E 0F 20 00 00 00 00 00  *.......... .....*
Show:
© 2014 Microsoft