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

Restructure, add script step constants

This commit is contained in:
2025-06-14 16:28:41 +02:00
parent 53134a0d09
commit 10285084eb
8 changed files with 390 additions and 200 deletions

View File

@ -20,6 +20,20 @@ const (
hbamSize = len(hbamSequence)
)
type FmpFile struct {
VersionDate time.Time
CreatorName string
FileSize uint
Sectors []*FmpSector
Chunks []*FmpChunk
Dictionary *FmpDict
numSectors uint64 // Excludes the header sector
currentSectorID uint64
stream io.ReadSeeker
}
func OpenFile(path string) (*FmpFile, error) {
info, err := os.Stat(path)
if err != nil {