Documentation
¶
Index ¶
- type Bitmap
- func (b *Bitmap) Bit(i int) uint
- func (b *Bitmap) Bytes() []byte
- func (b *Bitmap) Range(s, e int) *Bitmap
- func (b *Bitmap) SetBit(i int, v uint)
- func (b *Bitmap) SetBytes(buf []byte)
- func (b *Bitmap) SetString(s string) bool
- func (b *Bitmap) SetUint64(x uint64)
- func (b *Bitmap) Size() int
- func (b *Bitmap) String(base int) string
- func (b *Bitmap) Uint64() (uint64, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmap ¶
type Bitmap struct {
// contains filtered or unexported fields
}
func (*Bitmap) SetBit ¶
SetBit sets b's i'th bit to v (0 or 1). If b is not 0 or 1, SetBit will panic.
func (*Bitmap) SetBytes ¶
SetBytes interprets buf as the bytes of a big-endian unsigned integer, and sets b to that value.
func (*Bitmap) SetString ¶
SetString sets b to the value of s, interpreted in the given base, and returns a boolean indicating success.
A prefix of “0b” or “0B” selects base 2, “0”, “0o” or “0O” selects base 8, and “0x” or “0X” selects base 16. Otherwise, the selected base is 10 and no prefix is accepted.
Click to show internal directories.
Click to hide internal directories.