package
0.2.2
Repository: https://github.com/protolambda/ztyp.git
Documentation: pkg.go.dev

# Functions

Get index of left-most 1 bit.
Helper function to implement Bitlist with.
No description provided by the author
No description provided by the author
Returns the length of the bitlist.
Counts the bits set to 1, excluding the delimiter bit.
Helper function to implement Bitvector with.
No description provided by the author
No description provided by the author
Counts the bits set to 1.
Returns true if bf only has bits set to 1 that bitfield af also has set to 1 For bitlists and bitvectors, the trailing part is always the same if the bitlength is the same.
Helper function to implement Bitfields with.
Checks if the bitList is fully zeroed (except the leading bit).
Helper function to implement Bitfields with.

# Interfaces

General base interface for Bitlists and Bitvectors Note for Bitfields to work with the SSZ functionality: - Bitlists need to be of kind []byte (packed bits, incl delimiter bit) - Bitvectors need to be of kind [N]byte (packed bits).
bitfields implementing this can be checked to be of a valid or not.
the exact bitlength can be determined for bitfields implementing this method.