buffer

package
v0.0.0-...-9fce2f1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPool = New(32, 128)

Functions

func Get

func Get() *bytes.Buffer

func Put

func Put(b *bytes.Buffer)

Types

type Pool

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

func New

func New(cap, width int) *Pool

func (*Pool) Get

func (p *Pool) Get() *bytes.Buffer

func (*Pool) Put

func (p *Pool) Put(b *bytes.Buffer)

Jump to

Keyboard shortcuts

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