cuei

package module
v0.0.0-...-5641f7a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: BSD-3-Clause Imports: 2 Imported by: 2

README

gob

gob, Group of Bits. Golang bitslicer for bytes.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gob

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

Gob converts bytes to a list of bits.

func (*Gob) As90k

func (g *Gob) As90k(bitcount uint) float64

As90k is Float / 90000.00 rounded to six decimal places.

func (*Gob) Ascii

func (g *Gob) Ascii(bitcount uint) string

Ascii returns the Ascii chars of Bytes

func (*Gob) Bool

func (g *Gob) Bool() bool

func (*Gob) Bytes

func (g *Gob) Bytes(bitcount uint) []byte

Bytes slices bitcount of bits and returns as []bytes

func (*Gob) Chunk

func (g *Gob) Chunk(bitcount uint) *big.Int

Chunk slices bitcount of bits and returns it as a uint64

func (*Gob) Flag

func (g *Gob) Flag() bool

Flag slices 1 bit and returns true for 1 , false for 0

func (*Gob) Float

func (g *Gob) Float(bitcount uint) float64

Float slices bitcount of bits and returns float64

func (*Gob) Forward

func (g *Gob) Forward(bitcount uint)

Forward advances g.idx by bitcount

func (*Gob) Hex

func (g *Gob) Hex(bitcount uint) string

Hex slices bitcount of bits and returns as hex string

func (*Gob) Load

func (g *Gob) Load(bites []byte)

Load raw bytes and convert to bits

func (*Gob) UInt16

func (g *Gob) UInt16(bitcount uint) uint16

uint16 trims uint64 to 16 bits

func (*Gob) UInt32

func (g *Gob) UInt32(bitcount uint) uint32

uint32 trims uint64 to 32 bits

func (*Gob) UInt64

func (g *Gob) UInt64(bitcount uint) uint64

uint64 is a wrapper for Chunk

func (*Gob) UInt8

func (g *Gob) UInt8(bitcount uint) uint8

uint8 trims uint64 to 8 bits

Jump to

Keyboard shortcuts

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