lazyfile

package
v0.0.0-...-9a26220 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	// contains filtered or unexported fields
}

func NewFileInfo

func NewFileInfo(name string, size int64, fileMode fs.FileMode) *FileInfo

func (*FileInfo) IsDir

func (f *FileInfo) IsDir() bool

func (*FileInfo) ModTime

func (f *FileInfo) ModTime() time.Time

func (*FileInfo) Mode

func (f *FileInfo) Mode() fs.FileMode

func (*FileInfo) Name

func (f *FileInfo) Name() string

func (*FileInfo) Size

func (f *FileInfo) Size() int64

func (*FileInfo) Sys

func (f *FileInfo) Sys() any

type LazyFile

type LazyFile struct {
	fs.File
	io.Seeker
	io.ReaderAt
	// contains filtered or unexported fields
}

func LazyOpenStreamByFile

func LazyOpenStreamByFile(f fi.FileSystem, rf fs.File) *LazyFile

func LazyOpenStreamByFilePath

func LazyOpenStreamByFilePath(fsIns fs.FS, name string) *LazyFile

func (*LazyFile) Close

func (f *LazyFile) Close() error

func (*LazyFile) Name

func (f *LazyFile) Name() string

func (*LazyFile) Read

func (f *LazyFile) Read(b []byte) (int, error)

func (*LazyFile) ReadAt

func (f *LazyFile) ReadAt(b []byte, off int64) (n int, err error)

func (*LazyFile) Seek

func (f *LazyFile) Seek(offset int64, whence int) (int64, error)

func (*LazyFile) Stat

func (f *LazyFile) Stat() (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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