Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SectorReader ¶
type SectorReader struct {
// contains filtered or unexported fields
}
SectorReader is a relatively memory efficient reader to read blocks from a filecoin lotus generated unsealed sector copy.
func NewSectorReader ¶
func NewSectorReader(f io.Reader) (*SectorReader, error)
NewSectorReader creates a new SectorReader instance.
@input - io reader.
@output - sector reader, error.
func (*SectorReader) Advance ¶
func (sr *SectorReader) Advance() error
Advance advances the current pointer to the start of next block.
@output - error.
func (*SectorReader) GetBufPos ¶
func (sr *SectorReader) GetBufPos() uint64
GetBufPos gets the current position of the sub pointer.
@output - position of the sub pointer.
func (*SectorReader) GetPos ¶
func (sr *SectorReader) GetPos() uint64
GetPos gets the current position of the main pointer.
@output - position of the main pointer.
Click to show internal directories.
Click to hide internal directories.