package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: May 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Get returns a byte slice with given length from the built-in pool.
Put returns the byte slice to the built-in pool.
Pool consists of 32 sync.Pool, representing byte slices of length from 0 to 32 in powers of 2.
Get retrieves a byte slice of the length requested by the caller from pool or allocates a new one.
Put returns the byte slice to the pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.