Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidEndianness = errors.New("unsupported endianness") ErrInvalidLength = errors.New("len(buffer) for zcbit must be N * 8") ErrUnsupportedArch = errors.New("unsupported host endianness") )
errors
Functions ¶
This section is empty.
Types ¶
type BitSet ¶
type BitSet struct {
// contains filtered or unexported fields
}
BitSet is bit vector component
func (*BitSet) FindFirstOne ¶
FindFirstOne returns first 1 bit index and true. if not found then returns false
func (*BitSet) FindFirstZero ¶
FindFirstZero returns first 0 bit index and true. if not found then returns false TODO: set tail
func (*BitSet) FindLastOne ¶
FindLastOne returns last 1 bit index and true. if not found then returns false
type Endianness ¶
type Endianness uint8
Endianness is LittleEndian or BigEndian
const ( LittleEndian Endianness BigEndian )
Use LittleEndian or BigEndian for BitSet initialization
func (Endianness) String ¶
func (e Endianness) String() string
Click to show internal directories.
Click to hide internal directories.