bitslice

package
v0.0.0-...-dd2a963 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package bitslice provides a slice of bits

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitSlice

type BitSlice []byte

BitSlice is a slice of zeros and ones

func NewFromBytes

func NewFromBytes(bytes []byte) (BitSlice, error)

NewFromBytes creates a BitSlice from a byte slice

func (BitSlice) ToBytes

func (b BitSlice) ToBytes(numBytes int) []byte

ToBytes packages a BitSlice as a byte slice of length numBytes

Jump to

Keyboard shortcuts

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