buffer

package
v0.0.0-...-1f36970 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: BSD-2-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheBuffer

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

CacheBuffer -

func NewCacheBuffer

func NewCacheBuffer(src io.Reader, bufSize int) *CacheBuffer

NewCacheBuffer creates a new CacheBuffer with a Reader and bufferSize

func (CacheBuffer) Buffer

func (cb CacheBuffer) Buffer() []byte

Buffer returns the []byte from CacheBuffer Warning: only returns what has been read so far.

func (*CacheBuffer) Read

func (cb *CacheBuffer) Read(p []byte) (n int, err error)

func (*CacheBuffer) ReadAt

func (cb *CacheBuffer) ReadAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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