bertlv

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 7 Imported by: 0

README

BERTLV pure Go library

Build Status

Go 1.9+ due to math/bits dependency and no plans to fix it.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(tlv *TLV) ([]byte, error)

Types

type TLV

type TLV struct {
	T      []byte
	V      []byte
	LUndef bool // if true length will be written as undefined (0x80) for complex tag

	Children []*TLV
}

func Decode

func Decode(p []byte) (*TLV, error)

func (*TLV) IsComplex added in v0.3.0

func (tlv *TLV) IsComplex() bool

func (*TLV) L added in v0.3.0

func (tlv *TLV) L() uint64

func (*TLV) Size added in v0.3.0

func (tlv *TLV) Size() uint64

func (*TLV) String

func (tlv *TLV) String() string

Jump to

Keyboard shortcuts

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