util

package
v0.0.0-...-7788d34 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendWrite

func AppendWrite(f *os.File, data []byte) (int, error)

func BytesCombine

func BytesCombine(pBytes ...[]byte) []byte

Combine multi byte slice

func CloseHintFp

func CloseHintFp(fps []*os.File)

func Crc

func Crc(data []byte) uint32

Get crc

func GetLastHintFile

func GetLastHintFile(hintFps []*os.File, defaultLastFunc func(int) string) (uint32, *os.File)

GetLastHintFile

func LockFileWhenStartup

func LockFileWhenStartup(lockfpath string) (*os.File, error)

func MaxInt

func MaxInt(x, y int) int

func WritePid

func WritePid(f *os.File, fid uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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