reader

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOutOfBuffer = errors.New("n is bigger than len of buffer")
)

Functions

This section is empty.

Types

type BufferedReader

type BufferedReader struct {
	io.Reader
	// contains filtered or unexported fields
}

func New

func New(rd io.Reader) *BufferedReader

func (*BufferedReader) AllBytes

func (b *BufferedReader) AllBytes() []byte

func (*BufferedReader) Cap

func (b *BufferedReader) Cap() int

func (*BufferedReader) Free

func (b *BufferedReader) Free()

func (*BufferedReader) LastBytes

func (b *BufferedReader) LastBytes() []byte

func (*BufferedReader) ReadByte

func (b *BufferedReader) ReadByte() (byte, error)

func (*BufferedReader) ReadN

func (b *BufferedReader) ReadN(n int) ([]byte, error)

func (*BufferedReader) Reset

func (b *BufferedReader) Reset()

Jump to

Keyboard shortcuts

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