utils

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 Imported by: 23

Documentation

Index

Constants

View Source
const (
	TooBigBlockSize = 1024 * 1024 * 4
)

Variables

This section is empty.

Functions

func ByteSlicePut

func ByteSlicePut(data *ByteSlice)

func ByteSliceToString

func ByteSliceToString(b []byte) string

func BytesBufferGet

func BytesBufferGet() (data *bytes.Buffer)

func BytesBufferPut

func BytesBufferPut(data *bytes.Buffer)

func Float64ToUint64

func Float64ToUint64(val float64) uint64

func Int64ToUint64

func Int64ToUint64(val int64) uint64

func StringToByteSlice

func StringToByteSlice(s string) []byte

func Uint64ToFloat64

func Uint64ToFloat64(val uint64) float64

func Uint64ToInt64

func Uint64ToInt64(val uint64) int64

Types

type ByteSlice added in v1.5.0

type ByteSlice struct {
	B []byte
}

func ByteSliceGet

func ByteSliceGet(length int) *ByteSlice

Jump to

Keyboard shortcuts

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