util

package
v0.0.0-...-84468b9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base_w

func Base_w(X []byte, w int, out_len int) []int

func BytesToUint32

func BytesToUint32(in []byte) uint32

func BytesToUint64

func BytesToUint64(in []byte) uint64

func ToByte

func ToByte(in uint64, outlen int) []byte

For x and y non-negative integers, toByte(x,y) returns the y-byte bytearray containing the binary representation of x in big-endian byte-order.

Types

type Stack

type Stack []*StackEntry

func (*Stack) IsEmpty

func (s *Stack) IsEmpty() bool

func (*Stack) Peek

func (s *Stack) Peek() *StackEntry

func (*Stack) Pop

func (s *Stack) Pop() *StackEntry

func (*Stack) Push

func (s *Stack) Push(stackEntry *StackEntry)

type StackEntry

type StackEntry struct {
	Node       []byte
	NodeHeight int
}

Jump to

Keyboard shortcuts

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