klv

package
v0.0.0-...-3725533 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KLV

type KLV struct {
	DataMap map[byte]*KLVData
	Data    []*KLVData
	// contains filtered or unexported fields
}

func NewDynamicKLV

func NewDynamicKLV() *KLV

func NewKLV

func NewKLV() *KLV

func (*KLV) AddSlice

func (me *KLV) AddSlice(key int, data []byte) *KLVData

func (*KLV) AddString

func (me *KLV) AddString(key int, data string) *KLVData

func (*KLV) Dump

func (me *KLV) Dump() string

func (*KLV) Export

func (me *KLV) Export(buffer *bytes.Buffer)

func (*KLV) GetKLV

func (me *KLV) GetKLV(key int) *KLVData

func (*KLV) Parse

func (me *KLV) Parse(data []byte) error

func (*KLV) Reset

func (me *KLV) Reset()

func (*KLV) SetDynamicLength

func (me *KLV) SetDynamicLength(v bool)

type KLVData

type KLVData struct {
	Key    byte
	Length int
	Value  []byte
}

Jump to

Keyboard shortcuts

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