util

package
v0.0.0-...-d8bf801 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillConst

func FillConst(dest []byte, byteVal byte)

func FillSeq

func FillSeq(dest []byte, startValue byte)

func MakeSeq

func MakeSeq(count int, startValue byte) []byte

func Uint24FromBytes

func Uint24FromBytes(src []byte) uint32

Read a 24bit little-endian value

func Uint24ToBytes

func Uint24ToBytes(val uint32, dest []byte)

func Uint32FromBytes

func Uint32FromBytes(src []byte) uint32

Read a 32bit little-endian value

func Uint32ToBytes

func Uint32ToBytes(val uint32, dest []byte)

func Uint64FromBytes

func Uint64FromBytes(src []byte) uint64

Read a 64bit little-endian value

func Uint64ToBytes

func Uint64ToBytes(val uint64, dest []byte)

Types

type RandStream

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

func NewRandStream

func NewRandStream(seed byte) RandStream

func (RandStream) FillRand

func (rs RandStream) FillRand(dest []byte)

func (RandStream) Rand16bit

func (rs RandStream) Rand16bit() uint16

func (RandStream) Rand24bit

func (rs RandStream) Rand24bit() uint32

func (RandStream) Rand32bit

func (rs RandStream) Rand32bit() uint32

Jump to

Keyboard shortcuts

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