fs

package
v0.0.0-...-e24e4fd Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	io.Reader
	io.ReaderAt
	io.Writer
	io.WriterAt
	io.Closer
	Truncate(int64) error
	Size() int64
	Sync() error
}

func Open

func Open(name string, fs FileSystem) (File, error)

type FileSystem

type FileSystem = byte
const (
	OSFileSystem FileSystem = iota
)

type OSFile

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

func (*OSFile) Close

func (of *OSFile) Close() error

func (*OSFile) Read

func (of *OSFile) Read(p []byte) (n int, err error)

func (*OSFile) ReadAt

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

func (*OSFile) Size

func (of *OSFile) Size() int64

func (*OSFile) Sync

func (of *OSFile) Sync() error

func (*OSFile) Truncate

func (of *OSFile) Truncate(size int64) error

func (*OSFile) Write

func (of *OSFile) Write(p []byte) (n int, err error)

func (*OSFile) WriteAt

func (of *OSFile) WriteAt(b []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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