cbtables

package
v0.0.0-...-d9c8637 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagVersion          = 0x0004
	TagForward          = 0x0011
	TagTimestamps       = 0x0016
	TagConsole          = 0x0017
	TagVersionTimestamp = 0x0026
)
View Source
const HeaderSize = 24

Variables

This section is empty.

Functions

func IPChecksum

func IPChecksum(b []byte) uint16

Types

type CBMemConsole

type CBMemConsole struct {
	Size   uint32
	Cursor uint32
}

type CBTablesReader

type CBTablesReader interface {
	GetConsole() (cons []byte, lost uint32, err error)
	GetTimestamps() (*TimeStamps, error)
	GetVersion() (string, error)
	GetVersionTimestamp() (time.Time, error)
}

func Open

func Open() (reader CBTablesReader, err error)
type Header struct {
	Signature      [4]uint8 /* LBIO */
	HeaderBytes    uint32
	HeaderChecksum uint32
	TableBytes     uint32
	TableChecksum  uint32
	TableEntries   uint32
}

type Record

type Record struct {
	Tag  uint32
	Size uint32
}

type TimeStampEntry

type TimeStampEntry struct {
	EntryID    uint32
	EntryStamp uint64
}

type TimeStampHeader

type TimeStampHeader struct {
	BaseTime   uint64
	MaxEntries uint32
	NumEntries uint32
}

type TimeStamps

type TimeStamps struct {
	Head         TimeStampHeader
	Entries      []TimeStampEntry
	FrequencyMHZ uint32
}

func (TimeStamps) String

func (t TimeStamps) String() string

Jump to

Keyboard shortcuts

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