package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

ClearBit clears the bit at index `i` in the byte slice `b`, i.e.
MakeBitVector allocates a byte slice of minimal size that can hold numberBits.
MinimalByteSliceLength returns the minimal length of a byte slice that can store n bits.
ReadBit returns the bit at index `idx` in the byte array `b` (big endian) The function panics, if the byte slice is too short.
SetBit sets the bit at index `i` in the byte array `b`, i.e.
WriteBit assigns value `v` to the bit at index `i` in the byte array `b`.