bit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

func (*Set) Get

func (set *Set) Get(i uint64) (b bool, err error)

func (*Set) Init

func (set *Set) Init(n uint64, data []byte)

Init initialize the set with n bits, and data storing your bits

func (*Set) Len

func (set *Set) Len() (length uint64)

Len the length of the Set, in bits

func (*Set) Set

func (set *Set) Set(i uint64, b bool)

func (*Set) Uint

func (set *Set) Uint(first_bit uint64, bits uint8) (u uint64, err error)

Jump to

Keyboard shortcuts

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