stream

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBufioReaderPool = BufioReaderPool{MaxSize: 1024}
View Source
var DefaultBufioWriterPool = BufioWriterPool{MaxSize: 1024}

Functions

func ReadBufferLine

func ReadBufferLine(reader *bufio.Reader, limit int64) ([]byte, error)

Types

type BufioReaderPool

type BufioReaderPool struct {
	MaxSize int
	// contains filtered or unexported fields
}

func (*BufioReaderPool) Get

func (rdp *BufioReaderPool) Get(reader io.Reader) *bufio.Reader

func (*BufioReaderPool) Put

func (rdp *BufioReaderPool) Put(reader *bufio.Reader)

type BufioWriterPool

type BufioWriterPool struct {
	MaxSize int
	// contains filtered or unexported fields
}

func (*BufioWriterPool) Get

func (rdp *BufioWriterPool) Get(writer io.Writer) *bufio.Writer

func (*BufioWriterPool) Put

func (rdp *BufioWriterPool) Put(writer *bufio.Writer)

Jump to

Keyboard shortcuts

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