partialfile

package
v0.0.0-...-484cccf Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type PartialFile

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

func CreatePartialFile

func CreatePartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialFile, error)

func OpenPartialFile

func OpenPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialFile, error)

func (*PartialFile) Allocated

func (pf *PartialFile) Allocated() (rlepluslazy.RunIterator, error)

func (*PartialFile) Close

func (pf *PartialFile) Close() error

func (*PartialFile) Free

func (*PartialFile) HasAllocated

func (pf *PartialFile) HasAllocated(offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize) (bool, error)

func (*PartialFile) MarkAllocated

func (pf *PartialFile) MarkAllocated(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) error

func (*PartialFile) Reader

func (pf *PartialFile) Reader(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) (*os.File, error)

func (*PartialFile) Writer

func (pf *PartialFile) Writer(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) (io.Writer, error)

Jump to

Keyboard shortcuts

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