Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ASCII = &asciiEncoder{}
)
View Source
var (
ASCIIHexToBytes = &asciiToHexEncoder{}
)
ASCII To HEX encoder
View Source
var (
BCD = &bcdEncoder{}
)
View Source
var (
BerTLVTag = &berTLVEncoderTag{}
)
View Source
var (
Binary = &binaryEncoder{}
)
View Source
var (
BytesToASCIIHex = &hexToASCIIEncoder{}
)
HEX to ASCII encoder
View Source
var (
EBCDIC = &ebcdicEncoder{}
)
View Source
var EBCDIC1047 = &ebcdic1047Encoder{ encoder: charmap.CodePage1047.NewEncoder(), decoder: charmap.CodePage1047.NewDecoder(), }
EBCDIC1047 is an encoder for EBCDIC characters using IBM Code Page 1047.
View Source
var (
LBCD = &lBCDEncoder{}
)
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder interface { // Encode encodes source data (ASCII, characters, digits, etc.) into // destination bytes. It returns encoded bytes and any error Encode([]byte) ([]byte, error) // Decode decodes data into bytes (ASCII, characters, digits, // etc.). It returns the bytes representing the decoded data, the // number of bytes read from the input, and any error Decode([]byte, int) (data []byte, read int, err error) }
Click to show internal directories.
Click to hide internal directories.