Categorygithub.com/prysmaticlabs/go-bitfield
modulepackage
0.0.0-20240618144021-706c95b2dd15
Repository: https://github.com/prysmaticlabs/go-bitfield.git
Documentation: pkg.go.dev

# README

go-bitfield

GoDoc Go Report Card Build status

Bitfields are a bytes abstraction to represent a list of bits.

See the godoc reference for more details.

Usage

go get github.com/prysmaticlabs/go-bitfield

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache License 2.0

# Functions

NewBitlist creates a new bitlist of size N.
NewBitlist64 creates a new bitlist of size `n`.
NewBitlist64From creates a new bitlist for a given uint64 array.
NewBitlist64FromBytes creates a new bitlist for a given array of bytes.
NewBitvector128 creates a new bitvector of size 128.
NewBitvector256 creates a new bitvector of size 256.
NewBitvector32 creates a new bitvector of size 32.
NewBitvector4 creates a new bitvector of size 4.
NewBitvector512 creates a new bitvector of size 512.
NewBitvector64 creates a new bitvector of size 64.
NewBitvector8 creates a new bitvector of size 8.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Bitlist64 is a bitfield implementation backed by an array of uint64.

# Interfaces

Bitfield is the abstraction implemented by Bitlist or BitvectorN.

# Type aliases

Bitlist is a bitfield implementation backed by an array of bytes.
Bitvector128 is a bitfield with a fixed defined size of 128.
Bitvector256 is a bitfield with a fixed defined size of 256.
Bitvector32 is a bitfield with a fixed defined size of 32.
Bitvector4 is a bitfield with a known size of 4.
Bitvector512 is a bitfield with a fixed defined size of 512.
Bitvector64 is a bitfield with a fixed defined size of 64.
Bitvector8 is a bitfield with a fixed defined size of 8.