pool

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pool provides a buffer pool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocBuffer

func AllocBuffer() *bytes.Buffer

AllocBuffer allocates a buffer, or re-uses an existing buffer.

func ReleaseBuffer

func ReleaseBuffer(buf *bytes.Buffer)

ReleaseBuffer returns a buffer to the pool to be re-used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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