DL

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EqualLegth = iota
	//version 4.2.0
	Time
	Angle
	Distance
)

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, version uint16, startAdress int64) (*Block, error)

func (*Block) BlankBlock

func (b *Block) BlankBlock() *Block

func (*Block) Concatenate

func (b *Block) Concatenate(file *os.File) *DT.Block

func (*Block) DataBlockType

func (b *Block) DataBlockType() string

func (*Block) DataSectionLength

func (b *Block) DataSectionLength(variableOffsetIndex int) uint64

DataSectionLength returns offset based on datablock. If DTblock has EqualLegth, `variableOffsetIndex` will be ignored.

func (*Block) Next

func (b *Block) Next() int64

type Data

type Data struct {
	Flags          uint8
	Reserved       [3]byte
	Count          uint32
	EqualLegth     uint64
	Offset         []uint64
	TimeValues     []float64
	AngleValues    []float64
	DistanceValues []float64
}
type Link struct {
	Next int64
	Data []int64
}

Jump to

Keyboard shortcuts

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