1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-07-09 00:14:05 +00:00

Add debug utils

This commit is contained in:
2025-06-12 09:41:46 +02:00
parent 564e1c4ce6
commit 47eeaa4255
3 changed files with 28 additions and 5 deletions

View File

@ -2,7 +2,6 @@ package fmp
import (
"encoding/binary"
"fmt"
)
type FmpChunk struct {
@ -13,10 +12,6 @@ type FmpChunk struct {
Value []byte
}
func (c *FmpChunk) String() string {
return fmt.Sprintf("<%v(%v)>", c.Type, c.Length)
}
func (ctx *FmpFile) readChunk(payload []byte) (*FmpChunk, error) {
// Simple data