Documentation
¶
Index ¶
- type BlockResults
- type FullReader
- func (f *FullReader) AddFragData(blockStart uint64, blockSize uint32, offset uint32) error
- func (f FullReader) Block(i uint32) ([]byte, error)
- func (f FullReader) BlockNum() uint32
- func (f *FullReader) Close() error
- func (f *FullReader) SetDispatcherPool(dispatcher chan struct{}, pool *sync.Pool)
- func (f FullReader) WriteTo(w io.Writer) (wrote int64, err error)
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockResults ¶ added in v1.4.0
type BlockResults struct {
// contains filtered or unexported fields
}
type FullReader ¶
type FullReader struct {
// contains filtered or unexported fields
}
func NewFullReader ¶
func NewFullReader(rdr io.ReaderAt, decomp decompress.Decompressor, blockSize uint32, size uint64, start uint64, sizes []uint32) FullReader
func (*FullReader) AddFragData ¶ added in v1.4.0
func (f *FullReader) AddFragData(blockStart uint64, blockSize uint32, offset uint32) error
func (FullReader) Block ¶ added in v1.4.0
func (f FullReader) Block(i uint32) ([]byte, error)
Returns the data block at the given index
func (FullReader) BlockNum ¶ added in v1.4.0
func (f FullReader) BlockNum() uint32
The number of blocks, including the fragment block if present
func (*FullReader) Close ¶ added in v1.2.0
func (f *FullReader) Close() error
func (*FullReader) SetDispatcherPool ¶ added in v1.4.0
func (f *FullReader) SetDispatcherPool(dispatcher chan struct{}, pool *sync.Pool)
Click to show internal directories.
Click to hide internal directories.