An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/prysmaticlabs/go-bitfield

Package bitfield is an abstraction type for bitfield operations. A bitfield is also known as a Bitlist or BitvectorN in Ethereum 2.0 spec. Both variants are static arrays in that they cannot dynamically change in size after being constructed. These data types represent a list of bits whose value is treated akin to a boolean. The bits are in little endian order. The key difference between a bitvector and a bitlist is how they track the number of bits in the array. A bitvectorN is known to have N bits at compile time, so the length is always N no matter how the bitvector is instantiated. Whereas the bitlist can be created with size N at runtime. The bitlist uses the most significant bit in little endian order to indicate the start of the bitlist while in the byte representation.
1 version
Latest release: about 4 years ago
254 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/prysmaticlabs/go-bitfield

Dependent Repos 0