pool

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferPool

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

func NewBufferPool

func NewBufferPool() *BufferPool

func (*BufferPool) NewPooledBuffer

func (w *BufferPool) NewPooledBuffer() PooledBuffer

type PooledBuffer

type PooledBuffer struct {
	Buffer *bytes.Buffer
	// contains filtered or unexported fields
}

func (PooledBuffer) Recycle

func (p PooledBuffer) Recycle()

func (PooledBuffer) WriteTo

func (p PooledBuffer) WriteTo(w io.Writer) (n int64, err error)

Jump to

Keyboard shortcuts

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