bitfield

package
v0.6.4-1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT 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

bits are indexed from left to right of internal byte array (like a little endian integer). But inside byte it is from right to left. //TODO: correct?

func (Bitfield) GetBit

func (b Bitfield) GetBit(i uint64) byte

func (Bitfield) IsZero

func (b Bitfield) IsZero() bool

func (Bitfield) VerifySize

func (b Bitfield) VerifySize(size uint64) bool

Verify bitfield against the size:

  • the bitfield must have the correct amount of bytes
  • bits after this size (in bits) must be 0.

Jump to

Keyboard shortcuts

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