hex

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asn1BytesToByte

func Asn1BytesToByte(str string) ([]byte, error)

Asn1BytesToByte This function was created for debugging purposes It takes as an input string of asn1 bytes (in HEXadecimal format) and converts them to the array of bytes ([]byte) which could be passed to the input of *ASN1toProto function Input data could be obtained in a following way: t.Logf("E2SM-KPM-ActionDefinition (Format3) asn1Bytes are \n%x", asn1Bytes)

func DumpToByte

func DumpToByte(str string) ([]byte, error)

DumpToByte This function was created for debugging purposes. It takes as an input output of hex.Dump() for asn1 bytes and converts them to the array of bytes ([]byte) which could be passed to the input of *ASN1toProto function Input data could be obtained in a following way: t.Logf("E2SM-KPM-ActionDefinition (Format3) asn1Bytes are \n%v", hex.Dump(asn1Bytes))

Types

This section is empty.

Jump to

Keyboard shortcuts

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