bufferpool

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: BSD-2-Clause Imports: 3 Imported by: 2

README

bufferpool

Thread-safe reuse of bytes.Buffer objects.

Documentation

Overview

Package bufferpool is a wrapper around sync.Pool for bytes.Buffer objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *bytes.Buffer

Get returns an empty bytes.Buffer with room for at least 256 bytes.

func Put

func Put(buf *bytes.Buffer)

Put returns the given bytes.Buffer to the pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳