package
module
Version:
v0.0.0-...-1090b6d
Opens a new window with list of versions in this module.
Published: Oct 25, 2019
License: MIT
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.
README
¶
Documentation
¶
Package bytespool provides a sync.Pool with *[]byte to reduce memory.
func AcquireBytes() *[]byte
AcquireBytes acquires the []byte from pool.
func ReleaseBytes(b *[]byte)
ReleaseBytes releases the []byte to pool.
Pool wraps the sync.Pool with *[]byte.
Acquire releases the []byte from pool.
Release releases the []byte to pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.