buffer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntermediateBufferReader added in v1.4.0

type IntermediateBufferReader struct {
	Reader      io.Reader
	ContentSize int64
	Buffer      []byte
	// contains filtered or unexported fields
}

IntermediateBufferReader implements an io.Reader that will read from a configured Reader into an intermediate buffer, populating bytes slices passed to the Read method from the intermediate buffer.

func (*IntermediateBufferReader) Read added in v1.4.0

func (a *IntermediateBufferReader) Read(p []byte) (n int, err error)

Read populates p from the internal buffer, reading from the internal reader to refill the buffer if all of the buffer's previous content has already been written out during previous calls to Read.

Jump to

Keyboard shortcuts

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