pool

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 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 Bytes

type Bytes interface {
	GetBytes() *bytes.Buffer
	PutBytes(*bytes.Buffer)
}

Bytes represent a generic pool of byte buffers.

type StdBytes

type StdBytes struct {
	// contains filtered or unexported fields
}
StdBytes uses the standard library's sync.Pool to implement the Bytes

interface.

func NewStdBytes

func NewStdBytes() (b StdBytes)

func (StdBytes) GetBytes

func (b StdBytes) GetBytes() (buf *bytes.Buffer)

func (StdBytes) PutBytes

func (b StdBytes) PutBytes(buf *bytes.Buffer)

Jump to

Keyboard shortcuts

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