dir

package
v1.12.15 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHdrLenNoEnough   = errors.New("cache file header length no enough")
	ErrEntryHdrNoEnough = errors.New("cache entry header length no enough")
	ErrDataNoEnough     = errors.New("cache data no enough")
	ErrFileTagUnmatched = errors.New("cache file tag unmatched")
)

Functions

func BytesFileInfo

func BytesFileInfo(fi fs.FileInfo) []byte

func FileInfoFrom

func FileInfoFrom(b []byte) (ret fs.FileInfo, err error)

func ReadFileInfos

func ReadFileInfos(b []byte) (fis []fs.FileInfo, err error)

func SizeFileInfo

func SizeFileInfo(fi fs.FileInfo) int

func SizeFileInfos

func SizeFileInfos(fis []fs.FileInfo) int

func WriteCacheHdr

func WriteCacheHdr(b []byte, entries int) []byte

func WriteFileInfo

func WriteFileInfo(b []byte, fi fs.FileInfo) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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