bitvector: github.com/teivah/bitvector Index | Files

package bitvector

import "github.com/teivah/bitvector"

Index

Package Files

bitvector_16.go bitvector_32.go bitvector_64.go bitvector_8.go bitvector_ascii.go

type Ascii Uses

type Ascii [2]Len64

Ascii is a 64-bit vector

func NewAscii Uses

func NewAscii() Ascii

func (Ascii) And Uses

func (bv Ascii) And(bv2 Ascii) Ascii

And operator

func (Ascii) AndNot Uses

func (bv Ascii) AndNot(bv2 Ascii) Ascii

AndNot operator

func (Ascii) Clear Uses

func (bv Ascii) Clear(i, j uint8) Ascii

Clear bits from index i (included) to index j (excluded)

func (Ascii) Count Uses

func (bv Ascii) Count() uint8

Count the number of bits set to 1

func (Ascii) Get Uses

func (bv Ascii) Get(i uint8) bool

Get ith bit

func (Ascii) Or Uses

func (bv Ascii) Or(bv2 Ascii) Ascii

Or operator

func (Ascii) Set Uses

func (bv Ascii) Set(i uint8, b bool) Ascii

Set ith bit

func (Ascii) String Uses

func (bv Ascii) String() string

func (Ascii) Toggle Uses

func (bv Ascii) Toggle(i uint8) Ascii

Toggle ith bit

func (Ascii) Xor Uses

func (bv Ascii) Xor(bv2 Ascii) Ascii

Xor operator

type Len16 Uses

type Len16 uint16

Len16 is a 16-bit vector

func (Len16) And Uses

func (bv Len16) And(bv2 Len16) Len16

And operator

func (Len16) AndNot Uses

func (bv Len16) AndNot(bv2 Len16) Len16

AndNot operator

func (Len16) Clear Uses

func (bv Len16) Clear(i, j uint8) Len16

Clear bits from index i (included) to index j (excluded)

func (Len16) Count Uses

func (bv Len16) Count() uint8

Count the number of bits set to 1

func (Len16) Get Uses

func (bv Len16) Get(i uint8) bool

Get ith bit

func (Len16) Or Uses

func (bv Len16) Or(bv2 Len16) Len16

Or operator

func (Len16) Pop Uses

func (bv Len16) Pop(i uint8) Len16

Pop right shifts the bits

func (Len16) Push Uses

func (bv Len16) Push(i uint8) Len16

Push left shifts the bits

func (Len16) Set Uses

func (bv Len16) Set(i uint8, b bool) Len16

Set ith bit

func (Len16) String Uses

func (bv Len16) String() string

func (Len16) Toggle Uses

func (bv Len16) Toggle(i uint8) Len16

Toggle ith bit

func (Len16) Xor Uses

func (bv Len16) Xor(bv2 Len16) Len16

Xor operator

type Len32 Uses

type Len32 uint32

Len32 is a 32-bit vector

func (Len32) And Uses

func (bv Len32) And(bv2 Len32) Len32

And operator

func (Len32) AndNot Uses

func (bv Len32) AndNot(bv2 Len32) Len32

AndNot operator

func (Len32) Clear Uses

func (bv Len32) Clear(i, j uint8) Len32

Clear bits from index i (included) to index j (excluded)

func (Len32) Count Uses

func (bv Len32) Count() uint8

Count the number of bits set to 1

func (Len32) Get Uses

func (bv Len32) Get(i uint8) bool

Get ith bit

func (Len32) Or Uses

func (bv Len32) Or(bv2 Len32) Len32

Or operator

func (Len32) Pop Uses

func (bv Len32) Pop(i uint8) Len32

Pop right shifts the bits

func (Len32) Push Uses

func (bv Len32) Push(i uint8) Len32

Push left shifts the bits

func (Len32) Set Uses

func (bv Len32) Set(i uint8, b bool) Len32

Set ith bit

func (Len32) String Uses

func (bv Len32) String() string

func (Len32) Toggle Uses

func (bv Len32) Toggle(i uint8) Len32

Toggle ith bit

func (Len32) Xor Uses

func (bv Len32) Xor(bv2 Len32) Len32

Xor operator

type Len64 Uses

type Len64 uint64

Len64 is a 64-bit vector

func (Len64) And Uses

func (bv Len64) And(bv2 Len64) Len64

And operator

func (Len64) AndNot Uses

func (bv Len64) AndNot(bv2 Len64) Len64

AndNot operator

func (Len64) Clear Uses

func (bv Len64) Clear(i, j uint8) Len64

Clear bits from index i (included) to index j (excluded)

func (Len64) Count Uses

func (bv Len64) Count() uint8

Count the number of bits set to 1

func (Len64) Get Uses

func (bv Len64) Get(i uint8) bool

Get ith bit

func (Len64) Or Uses

func (bv Len64) Or(bv2 Len64) Len64

Or operator

func (Len64) Pop Uses

func (bv Len64) Pop(i uint8) Len64

Pop right shifts the bits

func (Len64) Push Uses

func (bv Len64) Push(i uint8) Len64

Push left shifts the bits

func (Len64) Set Uses

func (bv Len64) Set(i uint8, b bool) Len64

Set ith bit

func (Len64) String Uses

func (bv Len64) String() string

func (Len64) Toggle Uses

func (bv Len64) Toggle(i uint8) Len64

Toggle ith bit

func (Len64) Xor Uses

func (bv Len64) Xor(bv2 Len64) Len64

Xor operator

type Len8 Uses

type Len8 uint8

Len8 is a 8-bit vector

func (Len8) And Uses

func (bv Len8) And(bv2 Len8) Len8

And operator

func (Len8) AndNot Uses

func (bv Len8) AndNot(bv2 Len8) Len8

AndNot operator

func (Len8) Clear Uses

func (bv Len8) Clear(i, j uint8) Len8

Clear bits from index i (included) to index j (excluded)

func (Len8) Count Uses

func (bv Len8) Count() uint8

Count the number of bits set to 1

func (Len8) Get Uses

func (bv Len8) Get(i uint8) bool

Get ith bit

func (Len8) Or Uses

func (bv Len8) Or(bv2 Len8) Len8

Or operator

func (Len8) Pop Uses

func (bv Len8) Pop(i uint8) Len8

Pop right shifts the bits

func (Len8) Push Uses

func (bv Len8) Push(i uint8) Len8

Push left shifts the bits

func (Len8) Set Uses

func (bv Len8) Set(i uint8, b bool) Len8

Set ith bit

func (Len8) String Uses

func (bv Len8) String() string

func (Len8) Toggle Uses

func (bv Len8) Toggle(i uint8) Len8

Toggle ith bit

func (Len8) Xor Uses

func (bv Len8) Xor(bv2 Len8) Len8

Xor operator

Package bitvector imports 2 packages (graph). Updated 2019-07-17. Refresh now. Tools for package owners.