arrayx

package
v0.0.0-...-48a15a0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: 0BSD Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dup

func Dup(i []byte) []byte

Dup create a duplicate of input byte array.

func PaddedLen

func PaddedLen(l int, align int) int

func SortByte

func SortByte(b []byte)

SortByte ascending sort a byte array in position.

Types

type BoolArr

type BoolArr []byte

BoolArr is boolean bit array over []byte (just like Vector<bool> in C++).

func NewBoolArr

func NewBoolArr(size int) BoolArr

func (BoolArr) Get

func (b BoolArr) Get(id int) bool

func (BoolArr) Length

func (b BoolArr) Length() int

func (BoolArr) OnesCount

func (b BoolArr) OnesCount() int

func (*BoolArr) Set

func (b *BoolArr) Set(id int, val bool)

Jump to

Keyboard shortcuts

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