bitmask

package
v0.0.0-...-511da98 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectedBitmask

type ConnectedBitmask struct {
	// contains filtered or unexported fields
}

func MakeConnectedBitmask

func MakeConnectedBitmask(min, max uint) ConnectedBitmask

func (*ConnectedBitmask) And

func (bm *ConnectedBitmask) And(other ConnectedBitmask)

func (ConnectedBitmask) AndCopy

func (ConnectedBitmask) Copy

func (ConnectedBitmask) Equal

func (bm ConnectedBitmask) Equal(other ConnectedBitmask) bool

func (*ConnectedBitmask) Extract

func (bm *ConnectedBitmask) Extract(bit uint) bool

func (*ConnectedBitmask) Flip

func (bm *ConnectedBitmask) Flip(bit uint)

func (*ConnectedBitmask) Inject

func (bm *ConnectedBitmask) Inject(bit uint, value bool)

func (ConnectedBitmask) IsSet

func (bm ConnectedBitmask) IsSet(bit uint) bool

func (ConnectedBitmask) IsZero

func (bm ConnectedBitmask) IsZero() bool

func (ConnectedBitmask) Len

func (bm ConnectedBitmask) Len() int

func (ConnectedBitmask) OnesCount

func (bm ConnectedBitmask) OnesCount() int

func (*ConnectedBitmask) Or

func (bm *ConnectedBitmask) Or(other ConnectedBitmask)

func (ConnectedBitmask) OrCopy

func (*ConnectedBitmask) Set

func (bm *ConnectedBitmask) Set(bit uint)

func (*ConnectedBitmask) Sub

func (bm *ConnectedBitmask) Sub(other ConnectedBitmask)

func (ConnectedBitmask) SubCopy

func (*ConnectedBitmask) Unset

func (bm *ConnectedBitmask) Unset(bit uint)

func (*ConnectedBitmask) Xor

func (bm *ConnectedBitmask) Xor(other ConnectedBitmask)

func (ConnectedBitmask) XorCopy

type LongBitmask

type LongBitmask struct {
	// contains filtered or unexported fields
}

func WrapAsLongBitmask

func WrapAsLongBitmask(mask []uint64) LongBitmask

func (*LongBitmask) And

func (bm *LongBitmask) And(other LongBitmask)

func (LongBitmask) AndCopy

func (bm LongBitmask) AndCopy(other LongBitmask) LongBitmask

func (LongBitmask) Copy

func (bm LongBitmask) Copy() LongBitmask

func (LongBitmask) Equal

func (bm LongBitmask) Equal(other LongBitmask) bool

func (*LongBitmask) Flip

func (bm *LongBitmask) Flip(bit uint)

func (*LongBitmask) Inject

func (bm *LongBitmask) Inject(bit uint, value bool)

func (LongBitmask) IsSet

func (bm LongBitmask) IsSet(bit uint) bool

func (LongBitmask) IsZero

func (bm LongBitmask) IsZero() bool

func (LongBitmask) Len

func (bm LongBitmask) Len() int

func (LongBitmask) Mask

func (bm LongBitmask) Mask() []uint64

func (LongBitmask) Next

func (bm LongBitmask) Next(bit *uint) bool

func (LongBitmask) OnesCount

func (bm LongBitmask) OnesCount() int

func (*LongBitmask) Or

func (bm *LongBitmask) Or(other LongBitmask)

func (LongBitmask) OrCopy

func (bm LongBitmask) OrCopy(other LongBitmask) LongBitmask

func (*LongBitmask) Set

func (bm *LongBitmask) Set(bit uint)

func (*LongBitmask) Shrink

func (bm *LongBitmask) Shrink()

func (*LongBitmask) Sub

func (bm *LongBitmask) Sub(other LongBitmask)

func (LongBitmask) SubCopy

func (bm LongBitmask) SubCopy(other LongBitmask) LongBitmask

func (LongBitmask) TrailingZerosFrom

func (bm LongBitmask) TrailingZerosFrom(bit uint) int

func (*LongBitmask) Unset

func (bm *LongBitmask) Unset(bit uint)

func (*LongBitmask) Xor

func (bm *LongBitmask) Xor(other LongBitmask)

func (LongBitmask) XorCopy

func (bm LongBitmask) XorCopy(other LongBitmask) LongBitmask

type ShortBitmask

type ShortBitmask struct {
	// contains filtered or unexported fields
}

func MakeShortBitmask

func MakeShortBitmask(mask uint64) ShortBitmask

func (*ShortBitmask) And

func (bm *ShortBitmask) And(other ShortBitmask)

func (ShortBitmask) AndCopy

func (bm ShortBitmask) AndCopy(other ShortBitmask) ShortBitmask

func (ShortBitmask) Copy

func (bm ShortBitmask) Copy() ShortBitmask

func (ShortBitmask) Equal

func (bm ShortBitmask) Equal(other ShortBitmask) bool

func (*ShortBitmask) Extract

func (bm *ShortBitmask) Extract(bit uint) bool

func (*ShortBitmask) Flip

func (bm *ShortBitmask) Flip(bit uint)

func (*ShortBitmask) Inject

func (bm *ShortBitmask) Inject(bit uint, value bool)

func (ShortBitmask) IsSet

func (bm ShortBitmask) IsSet(bit uint) bool

func (ShortBitmask) IsZero

func (bm ShortBitmask) IsZero() bool

func (ShortBitmask) Len

func (bm ShortBitmask) Len() int

func (ShortBitmask) OnesCount

func (bm ShortBitmask) OnesCount() int

func (*ShortBitmask) Or

func (bm *ShortBitmask) Or(other ShortBitmask)

func (*ShortBitmask) OrCopy

func (bm *ShortBitmask) OrCopy(other ShortBitmask) ShortBitmask

func (*ShortBitmask) Set

func (bm *ShortBitmask) Set(bit uint)

func (*ShortBitmask) Shrink

func (bm *ShortBitmask) Shrink()

func (*ShortBitmask) Sub

func (bm *ShortBitmask) Sub(other ShortBitmask)

func (*ShortBitmask) SubCopy

func (bm *ShortBitmask) SubCopy(other ShortBitmask) ShortBitmask

func (*ShortBitmask) Unset

func (bm *ShortBitmask) Unset(bit uint)

func (*ShortBitmask) Xor

func (bm *ShortBitmask) Xor(other ShortBitmask)

func (*ShortBitmask) XorCopy

func (bm *ShortBitmask) XorCopy(other ShortBitmask) ShortBitmask

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL