Documentation
¶
Overview ¶
Package bits provides operations on bit arrays.
Index ¶
- func Get[I constraints.Integer](data []byte, n I) int
- func Ones(data []byte) iter.Seq[int]
- func Set[I constraints.Integer](data []byte, n I, value bool)
- func Set0[I constraints.Integer](data []byte, n I)
- func Set1[I constraints.Integer](data []byte, n I)
- func Sum(data []byte) int
- func Zeros(data []byte) iter.Seq[int]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get[I constraints.Integer](data []byte, n I) int
Get returns the value of the n'th bit (0 or 1).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.