package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Nov 11, 2024
License: MIT
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.