bits

package
v0.0.0-...-473980d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(data []byte) []bool

FromBytess converts a slice of bytes to a slice of bools where every set bit is represented by a true value

func FromUint16

func FromUint16(data uint16) []bool

FromUint16 converts a uint16 value to a slice of bools where every set bit is represented by a true value

func ToBytes

func ToBytes(bools []bool) ([]byte, error)

ToBytes converts a slice of bools to a byte slice

func ToUint16

func ToUint16(bools []bool) (uint16, error)

ToUint16 converts a slice of bools to a uint16

Types

This section is empty.

Jump to

Keyboard shortcuts

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