file

package
v0.0.0-...-2cda34f Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeeFile

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

func New

func New(addr swarm.Address, store store.PutGetter, encrypt bool) *BeeFile

func (*BeeFile) Close

func (f *BeeFile) Close() (swarm.Address, error)

func (*BeeFile) Read

func (f *BeeFile) Read(b []byte) (n int, err error)

func (*BeeFile) ReadAt

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

func (*BeeFile) Sync

func (f *BeeFile) Sync() error

func (*BeeFile) Truncate

func (f *BeeFile) Truncate(sz int64) error

func (*BeeFile) Write

func (f *BeeFile) Write(b []byte) (n int, err error)

func (*BeeFile) WriteAt

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

type Reader

type Reader interface {
	io.ReaderAt
	io.ReadSeeker
}

Jump to

Keyboard shortcuts

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