1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-07-17 11:44:04 +00:00

Parse doubly linked sectors in order

This commit is contained in:
2025-06-13 12:09:39 +02:00
parent 6f3622be92
commit 7ff0cc8501
4 changed files with 64 additions and 28 deletions

View File

@ -13,16 +13,21 @@ type FmpFile struct {
Chunks []*FmpChunk
Dictionary *FmpDict
numSectors uint
stream io.ReadSeeker
numSectors uint64 // Excludes the header sector
currentSectorID uint64
stream io.ReadSeeker
}
type FmpSector struct {
Deleted bool
Level uint8
PrevSectorID uint64
NextSectorID uint64
Chunks []*FmpChunk
ID uint64
Level uint8
Deleted bool
PrevID uint64
NextID uint64
Prev *FmpSector
Next *FmpSector
Chunks []*FmpChunk
}
type FmpChunk struct {