bcd8421

package
v0.0.0-...-0f417a1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotBCD = errors.New("go-encoding/bcd8421: Byte is Not BCD Encoded")

Functions

func BCDtoUint8

func BCDtoUint8(bcd byte) (uint8, error)

Packed BCD 8-4-2-1 One digit per nibble to uint8 Error if not a BCD digits

func DecodeToString

func DecodeToString(src []byte, skipzero bool) (string, error)

func EncodeFromString

func EncodeFromString(number string, bytesLength int) ([]byte, error)

func Uint8toBCD

func Uint8toBCD(u uint8) byte

uint8 to Packed BCD 8-4-2-1 One digit per nibble

Types

This section is empty.

Jump to

Keyboard shortcuts

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