pool

package
v0.0.0-...-264f9d0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(fn func())

func NewBR1K

func NewBR1K(r io.Reader) *bufio.Reader

func ReleaseBR1K

func ReleaseBR1K(br *bufio.Reader)

func ReleaseBuf

func ReleaseBuf(b Buffer)

Types

type Buffer

type Buffer []byte

func CopyBuf

func CopyBuf(b []byte) Buffer

func GetBuf

func GetBuf(size int) Buffer

type BytesBufPool

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

func NewBytesBufPool

func NewBytesBufPool(initSize int) *BytesBufPool

func (*BytesBufPool) Get

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

func (*BytesBufPool) Release

func (p *BytesBufPool) Release(b *bytes.Buffer)

Jump to

Keyboard shortcuts

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