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

Dict parsing

This commit is contained in:
2025-06-12 10:43:02 +02:00
parent 8bf5cfeffd
commit 7dc88d96e9
3 changed files with 111 additions and 27 deletions

View File

@ -4,14 +4,6 @@ import (
"encoding/binary"
)
type FmpChunk struct {
Type FmpChunkType
Length uint32
Key uint32 // If Type == FMP_CHUNK_SHORT_KEY_VALUE or FMP_CHUNK_LONG_KEY_VALUE
Index uint32 // Segment index, if Type == FMP_CHUNK_SEGMENTED_DATA
Value []byte
}
func (ctx *FmpFile) readChunk(payload []byte) (*FmpChunk, error) {
// Simple data