package
module
Version:
v0.0.0-...-cfcf97e
Opens a new window with list of versions in this module.
Published: Mar 3, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
bytes pool
Simple []byte
buffer pool for golang backend by sync.Pool
.
package main
import "github.com/IrineSistiana/bytespool"
func main() {
b := Get(1024)
Release(b)
}
Documentation
¶
Note: The maximum reusable size is 2^30 (1GBytes).
If size is too big, Get simply calls make([]byte,size) and
ReleaseBuf is a noop.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.