HD

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Header blocks.Header
	Link   Link
	Data   Data
}

func New

func New(file *os.File, startAdress int64) *Block

New() seek and read to Block struct based on startAddress and blockSize.

The HDBLOCK always begins at file position 64. It contains general information about the contents of the measured data file and is the root for the block hierarchy.

func (*Block) BlankBlock

func (b *Block) BlankBlock() *Block

type Data

type Data struct {
	StartTimeNs   uint64
	TZOffsetMin   int16
	DSTOffsetMin  int16
	TimeFlags     uint8
	TimeClass     uint8
	Flags         uint8
	Reserved      uint8
	StartAngleRad float64
	StartDistM    float64
}
type Link struct {
	DgFirst   int64
	FhFirst   int64
	ChFirst   int64
	AtFirst   int64
	EvFirst   int64
	MdComment int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL