tlv

package
v0.0.0-...-e7f52fa Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int
const (
	Invalid Type = iota
	OctetString
	Boolean
	Integer
	Unsigned
	List
	EndOfSmlMsg
)

func (Type) String

func (t Type) String() string

type Value

type Value struct {
	// contains filtered or unexported fields
}

func MakeValue

func MakeValue(t Type, length int, val interface{}) (Value, error)

func (Value) Boolean

func (s Value) Boolean() bool

func (Value) Integer

func (s Value) Integer() int64

func (Value) Length

func (s Value) Length() int

func (Value) List

func (s Value) List() []Value

func (Value) MarshalJSON

func (s Value) MarshalJSON() ([]byte, error)

func (Value) OctetString

func (s Value) OctetString() []byte

func (Value) Type

func (s Value) Type() Type

func (Value) Unsigned

func (s Value) Unsigned() uint64

func (Value) Val

func (s Value) Val() interface{}

Jump to

Keyboard shortcuts

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