2017-04-24 08:33:08 +00:00
|
|
|
# Chunks Disk Format
|
|
|
|
|
|
|
|
The following describes the format of a single chunks file, which is created in the `chunks/` directory of a block.
|
|
|
|
|
|
|
|
```
|
2017-04-26 16:01:13 +00:00
|
|
|
┌─────────────────────────────┬─────────────────────┐
|
|
|
|
│ magic(0x85BD40DD) <4 byte> │ version(1) <1 byte> │
|
|
|
|
├─────────────────────────────┴─────────────────────┤
|
|
|
|
│ ┌──────────────┬───────────────────┬────────┐ │
|
|
|
|
│ │ len <varint> │ encoding <1 byte> │ data │ ... │
|
|
|
|
│ └──────────────┴───────────────────┴────────┘ │
|
|
|
|
└───────────────────────────────────────────────────┘
|
2017-04-24 08:33:08 +00:00
|
|
|
```
|