Documentation ¶
Index ¶
- func PieceRun(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) rlepluslazy.RunIterator
- type PartialFile
- func (pf *PartialFile) Allocated() (rlepluslazy.RunIterator, error)
- func (pf *PartialFile) Close() error
- func (pf *PartialFile) Free(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) error
- func (pf *PartialFile) HasAllocated(offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize) (bool, error)
- func (pf *PartialFile) MarkAllocated(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) error
- func (pf *PartialFile) Reader(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) (*os.File, error)
- func (pf *PartialFile) Writer(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) (io.Writer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PieceRun ¶
func PieceRun(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) rlepluslazy.RunIterator
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 (pf *PartialFile) Free(offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) error
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)
Click to show internal directories.
Click to hide internal directories.