prefetch

package
v1.1.0-beta.0...-9958228 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(r io.ReadCloser, prefetchSize int) io.ReadCloser

NewReader creates a new Reader.

Types

type Reader

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

Reader is a reader that prefetches data from the underlying reader.

func (*Reader) Close

func (r *Reader) Close() error

Close implements io.Closer. Close should not be called concurrently with Read.

func (*Reader) Read

func (r *Reader) Read(data []byte) (int, error)

Read implements io.Reader. Read should not be called concurrently with Close.

Jump to

Keyboard shortcuts

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