Documentation
¶
Index ¶
- func Decode(encoded []byte) ([]byte, error)
- func Encode(data []byte) ([]byte, bool)
- type Bitfield
- func (b Bitfield) ByteLength() uint64
- func (b *Bitfield) GetBit(index uint64) bool
- func (b *Bitfield) GetByte(index uint64) byte
- func (b Bitfield) IsEmpty() bool
- func (b Bitfield) Len() uint64
- func (b Bitfield) PageSize() int
- func (b *Bitfield) SetBit(index int, value bool) bool
- func (b *Bitfield) SetByte(index uint64, value byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bitfield ¶
type Bitfield struct {
// contains filtered or unexported fields
}
func NewBitfield ¶
func (Bitfield) ByteLength ¶
ByteLength returns the number of bytes in the bitfield
Click to show internal directories.
Click to hide internal directories.