encoding

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 Binary Encoder = &binaryEncoder{}
var Hex Encoder = &hexEncoder{}

ASCII HEX encoder

var LBCD Encoder = &lBCDEncoder{}

Jump to

Keyboard shortcuts

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