package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jun 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
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.