util

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MemPool = sync.Pool{
	New: func() any {
		return make([]byte, 65535)
	},
}

Functions

func Byte4ToUint32

func Byte4ToUint32(val []byte) uint32

func BytesToPtr

func BytesToPtr(bytes []byte) uint64

func BytesToUint32Arr

func BytesToUint32Arr(bytes []byte) []uint32

func PtrToBytes

func PtrToBytes(ptr uint32, ptrLen uint32) []byte

func PtrToString

func PtrToString(ptr uint32, ptrLen uint32) string

func RetUint64ToError

func RetUint64ToError(u64 uint64) error

func StringToBytes

func StringToBytes(s *string) []byte

func StringToPtr

func StringToPtr(s *string) uint64

func Uint32ToPtr

func Uint32ToPtr(u32 *uint32) uint64

func Uint32ToUint64

func Uint32ToUint64(n1u32 uint32, n2u32 uint32) uint64

func Uint32toByte4

func Uint32toByte4(val uint32) []byte

func Uint64ToPtr

func Uint64ToPtr(u64 *uint64) uint64

func Uint64ToUint32

func Uint64ToUint32(u64 uint64) (uint32, uint32)

func UnsafeByte4ToUint32

func UnsafeByte4ToUint32(val []byte) uint32

func UnsafeUint32toByte4

func UnsafeUint32toByte4(val uint32) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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