package
Version:
v0.0.0-...-384af84
Opens a new window with list of versions in this module.
Published: Apr 24, 2023
License: BSD-2-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package bytepool implements an optimization for byte slice allocations
by caching those slices for later reuse.
BytePool is a cached pool of reusable byte slices.
New allocates a new BytePool with slices of equal length and capacity.
Get returns a byte slice from the pool.
Put returns a byte slice to the pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.