cachedreader

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MaxCachedReaders = 128

Variables

View Source
var NoDealErr = errors.New("no deals found")

Functions

This section is empty.

Types

type CachedPieceReader

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

func (*CachedPieceReader) GetSharedPieceReader

func (cpr *CachedPieceReader) GetSharedPieceReader(ctx context.Context, pieceCid cid.Cid) (storiface.Reader, abi.PaddedPieceSize, error)

type PrefetchReader

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

func New

func New(source io.Reader, bufferDepth int) *PrefetchReader

func (*PrefetchReader) Close

func (pr *PrefetchReader) Close() error

func (*PrefetchReader) Read

func (pr *PrefetchReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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