mirror of
https://github.com/garraflavatra/go-fmp.git
synced 2025-07-18 20:14:05 +00:00
Table parsing (WIP)
This commit is contained in:
@ -232,16 +232,3 @@ func (ctx *FmpFile) readChunk(payload []byte) (*FmpChunk, error) {
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func parseVarUint32(payload []byte) uint32 {
|
||||
var length uint32
|
||||
n := len(payload)
|
||||
if n > 4 {
|
||||
n = 4 // clamp to max uint32
|
||||
}
|
||||
for i := range n {
|
||||
length <<= 8
|
||||
length |= uint32(payload[i])
|
||||
}
|
||||
return length
|
||||
}
|
||||
|
Reference in New Issue
Block a user