mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-19 08:30:21 +01:00
Added a comment about the zlib compressed content and meta data in the blocks.
This commit is contained in:
parent
cb5b6461a3
commit
0ff87c1d22
@ -30,6 +30,12 @@ type DecodedBlock struct {
|
|||||||
IndexMap map[int]int
|
IndexMap map[int]int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The content of the map and the meta data are compressed with zlib.
|
||||||
|
// Unfortunately the byte length of this two structures are not stored
|
||||||
|
// explicitly in the block data. To access the informations behind
|
||||||
|
// them (e.g. the node id mappings) we have to count the bytes consumed
|
||||||
|
// by the zlib reader and continue our extraction process behind this
|
||||||
|
// offset. PosBuf implements such a counting reader source.
|
||||||
type PosBuf struct {
|
type PosBuf struct {
|
||||||
Data []byte
|
Data []byte
|
||||||
Pos int
|
Pos int
|
||||||
|
Loading…
Reference in New Issue
Block a user