DG

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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, startAddress int64) *Block

func (*Block) BlankBlock

func (b *Block) BlankBlock() *Block

func (*Block) BytesOfRecordIDSize added in v1.1.0

func (b *Block) BytesOfRecordIDSize(f *os.File, buf []byte) (uint64, error)

BytesOfRecordIDSize returns number of Bytes used for record IDs in the data block.

func (*Block) FirstChannelGroup

func (b *Block) FirstChannelGroup() int64

func (*Block) HeaderID

func (b *Block) HeaderID() string

func (*Block) IsSorted

func (b *Block) IsSorted() bool

IsSorted checks if is Sorted `True`. Else `False` if it is Unsorted

func (*Block) MetadataComment

func (b *Block) MetadataComment() int64

func (*Block) Next

func (b *Block) Next() int64

func (*Block) RecordIDSize added in v1.1.0

func (b *Block) RecordIDSize() uint8

type Data

type Data struct {
	//Number of Bytes used for record IDs in the datablock.
	RecIDSize uint8
	Reserved  [7]byte
}
type Link struct {
	Next      int64
	CgFirst   int64
	Data      int64
	MdComment int64
}

Jump to

Keyboard shortcuts

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