codec

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyLEToNibbles

func KeyLEToNibbles(in []byte) (nibbles []byte)

KeyLEToNibbles converts a Little Endian byte slice into nibbles. It assumes bytes are already in Little Endian and does not rearrange nibbles.

func NibblesToKeyLE

func NibblesToKeyLE(nibbles []byte) []byte

NibblesToKeyLE converts a slice of nibbles with length k into a Little Endian byte slice. It assumes nibbles are already in Little Endian and does not rearrange nibbles. If the length of the input is odd, the result is [ 0000 in[0] | in[1] in[2] | ... | in[k-2] in[k-1] ] Otherwise, the result is [ in[0] in[1] | ... | in[k-2] in[k-1] ]

Types

This section is empty.

Jump to

Keyboard shortcuts

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