utils

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 3 Imported by: 0

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

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