bufferpool

package
v0.0.0-...-7e11129 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(size int) []byte

Get a buffer with size

func Put

func Put(p []byte)

Put release buffer

Types

type Pool

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

Pool pool

func (*Pool) Get

func (p *Pool) Get() []byte

Get get a buf

func (*Pool) Put

func (p *Pool) Put(x []byte)

Put release a buf

Jump to

Keyboard shortcuts

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