bitset

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 1 Imported by: 1

README

bitset

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitSet

type BitSet []byte

BitSet is a bitset.

func From

func From(data []byte) BitSet

From creates a new bitset from the given slice.

func (*BitSet) And added in v0.0.4

func (b *BitSet) And(other *BitSet) BitSet

And performs an and between two bitsets.

func (*BitSet) Bytes

func (b *BitSet) Bytes() []byte

Bytes returns the a slice of byte.

func (*BitSet) IsSet

func (b *BitSet) IsSet(index uint) bool

IsSet returns true if the bit at the given index is set.

func (*BitSet) Not added in v0.0.4

func (b *BitSet) Not() BitSet

Not performs an and between two bitsets.

func (*BitSet) Or added in v0.0.4

func (b *BitSet) Or(other *BitSet) BitSet

Or performs an and between two bitsets.

func (*BitSet) Set

func (b *BitSet) Set(index uint)

Set sets the bit at the given index.

func (BitSet) String added in v0.0.3

func (b BitSet) String() string

func (*BitSet) Xor added in v0.0.4

func (b *BitSet) Xor(other *BitSet) BitSet

Xor performs an and between two bitsets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳