encoding

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ASCIIHexToBytes = &asciiToHexEncoder{}

ASCII To HEX encoder

View Source
var BytesToASCIIHex = &hexToASCIIEncoder{}

HEX to ASCII encoder

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode([]byte) ([]byte, error)
	// Returns data decoded into ASCII (or bytes), how many bytes were read, error
	Decode([]byte, int) (data []byte, read int, err error)
}
var ASCII Encoder = &asciiEncoder{}
var BCD Encoder = &bcdEncoder{}
var BerTLVTag Encoder = &berTLVEncoderTag{}

BER-TLV Tag encoder

var Binary Encoder = &binaryEncoder{}
var EBCDIC Encoder = &ebcdicEncoder{}
var EBCDIC1047 Encoder = &ebcdic1047Encoder{
	encoder: charmap.CodePage1047.NewEncoder(),
	decoder: charmap.CodePage1047.NewDecoder(),
}

EBCDIC1047 is an encoder for EBCDIC characters using IBM Code Page 1047.

var LBCD Encoder = &lBCDEncoder{}

Jump to

Keyboard shortcuts

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