utils

package
Version: v0.0.0-...-6366697 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NativeEndian binary.ByteOrder
)

Functions

func FormatBigBytes

func FormatBigBytes(v *big.Int) string

func FormatBytes

func FormatBytes(v uint64) string

formatBytes formats a uint64 byte quantity using human-readble units, e.g. kilobyte, megabyte. TODO: Add big.Int variant of this function.

func Log2b

func Log2b(x uint) int

log2b finds the most significant bit set in a uint.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL