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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user