bitfield

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitField

type BitField []byte

func New

func New(n int) BitField

func NewFromUint32

func NewFromUint32(n uint32) BitField

func NewFromUint64

func NewFromUint64(n uint64) BitField

func (BitField) ANDMask

func (b BitField) ANDMask(m BitField)

func (BitField) Bytes

func (b BitField) Bytes() []byte

func (BitField) Clear

func (b BitField) Clear(i uint32)

func (BitField) ClearAll

func (b BitField) ClearAll()

func (BitField) Flip

func (b BitField) Flip(i uint32)

func (BitField) FlipAll

func (b BitField) FlipAll()

func (BitField) GetX

func (b BitField) GetX(index int) BitField

func (BitField) ORMask

func (b BitField) ORMask(m BitField)

func (BitField) Set

func (b BitField) Set(i uint32)

func (BitField) SetAll

func (b BitField) SetAll()

func (BitField) SetX

func (b BitField) SetX(index int, v int) BitField

func (BitField) Size

func (b BitField) Size() int

func (BitField) Test

func (b BitField) Test(i uint32) bool

func (BitField) ToUint32

func (b BitField) ToUint32() uint32

func (BitField) ToUint32Safe

func (b BitField) ToUint32Safe() uint32

func (BitField) ToUint64

func (b BitField) ToUint64() uint64

func (BitField) ToUint64Safe

func (b BitField) ToUint64Safe() uint64

func (BitField) XORMask

func (b BitField) XORMask(m BitField)

Directories

Path Synopsis
x

Jump to

Keyboard shortcuts

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