pool

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: GPL-3.0 Imports: 2 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
}

BufferPool represents a buffer pool container.

func NewBufferPool

func NewBufferPool() *BufferPool

NewBufferPool returns a new buffer pool instance.

func (*BufferPool) Get

func (bp *BufferPool) Get() *bytes.Buffer

Get returns a buffer instance from the pool.

func (*BufferPool) Put

func (bp *BufferPool) Put(buf *bytes.Buffer)

Put returns a buffer instance to the pool.

Jump to

Keyboard shortcuts

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