utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeToString

func DecodeToString(bs []byte) string

func EncodeString

func EncodeString(dst []byte, src string) int

func EncodeStringToBytes

func EncodeStringToBytes(s string) []byte

func EncodedStringLen

func EncodedStringLen(s string) int

func ExtractFilename

func ExtractFilename(path string) (filepath string, filename string, isDir bool)

func FiletimeToUnix

func FiletimeToUnix(ft uint64) time.Time

func FindMaxKey

func FindMaxKey[T any](m map[uint64]T) (key uint64, value T)

func FindMinKey

func FindMinKey[T any](m map[uint64]T) (key uint64, value T)

func NullTerminatedToStrings

func NullTerminatedToStrings(b []byte) []string

func Roundup

func Roundup(x, bound int) int

func UnixToFiletime

func UnixToFiletime(t time.Time) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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