file

package
v0.0.0-...-b9e7692 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileClient

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

func New

func New(f *os.File) (*FileClient, error)

func NewFromPath

func NewFromPath(filename string) (*FileClient, error)

func (*FileClient) Read

func (p *FileClient) Read(addr int, size int) ([]byte, error)

func (*FileClient) SetOffset

func (p *FileClient) SetOffset(offset int64)

TODO: setting offset in client seems like a bad idea

func (*FileClient) Write

func (p *FileClient) Write(addr int, data []byte) error

Jump to

Keyboard shortcuts

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