lazyfile

package
v1.2.9-sp6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LazyOpenReadCloserFile

func LazyOpenReadCloserFile(name string, flag int, perm os.FileMode) io.ReadCloser

Types

type LazyFile

type LazyFile struct {
	*os.File
	// contains filtered or unexported fields
}

func LazyOpenStreamByFile

func LazyOpenStreamByFile(rf *os.File) *LazyFile

func LazyOpenStreamByFilePath

func LazyOpenStreamByFilePath(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) Stat

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

func (*LazyFile) Write

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

Jump to

Keyboard shortcuts

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