bufiopool

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBufSize = 4096

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func New

func New(rsize, wsize int) *Pool

func (*Pool) GetReader

func (p *Pool) GetReader(r io.Reader) *bufio.Reader

func (*Pool) GetWriter

func (p *Pool) GetWriter(w io.Writer) *bufio.Writer

func (*Pool) PutReader

func (p *Pool) PutReader(br *bufio.Reader)

func (*Pool) PutWriter

func (p *Pool) PutWriter(bw *bufio.Writer)

Jump to

Keyboard shortcuts

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