util

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGPBerLength

func BuildGPBerLength(length uint) ([]byte, error)

BuildGPBerLength encodes a length value up to 65535 on up to three byte. The formatting is as defined by ASN.1 BER-TLV (see [ISO 8825-1]) except that the length 128 may also be coded on one byte as '80'.

func EvaluateTestWithError

func EvaluateTestWithError(t *testing.T, expErr bool, rcvErr error, exp interface{}, rcv interface{})

Types

type NullByte

type NullByte struct {
	Byte  byte // the actual value
	Valid bool // true if Byte is not NULL
}

NullByte represents a byte that may be null.

Jump to

Keyboard shortcuts

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