tlv

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TL16V

type TL16V struct {
	Type   []byte
	Length uint16
	Value  interface{}
}

func DecTL16V

func DecTL16V(order binary.ByteOrder, data []byte) (*TL16V, error)

func (TL16V) Decode

func (obj TL16V) Decode(order binary.ByteOrder, data []byte) (int64, error)

func (TL16V) Encode

func (obj TL16V) Encode(order binary.ByteOrder) ([]byte, error)

type TL32V

type TL32V struct {
	Type   []byte
	Length uint32
	Value  interface{}
}

func DecTL32V

func DecTL32V(order binary.ByteOrder, data []byte) (*TL32V, error)

func (TL32V) Decode

func (obj TL32V) Decode(order binary.ByteOrder, data []byte) (int64, error)

func (TL32V) Encode

func (obj TL32V) Encode(order binary.ByteOrder) ([]byte, error)

type TL64V

type TL64V struct {
	Type   []byte
	Length uint64
	Value  interface{}
}

func DecTL64V

func DecTL64V(order binary.ByteOrder, data []byte) (*TL64V, error)

func (TL64V) Decode

func (obj TL64V) Decode(order binary.ByteOrder, data []byte) (int64, error)

func (TL64V) Encode

func (obj TL64V) Encode(order binary.ByteOrder) ([]byte, error)

Jump to

Keyboard shortcuts

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