mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-05 02:00:30 +08:00
3b2315aa3437eea7c756c97161adcee41d13bb96
orbyte
Lightweight & Safe (buffer-writer | general object) pool.
Quick Start
import (
"crypto/rand"
"github.com/fumiama/orbyte/pbuf"
)
func main() {
b := pbuf.NewBytes(1024) // Allocate Bytes from pool.
rand.Read(b.Bytes()) // Do sth.
b.Destroy() // Optional, can be auto-destroyed on GC.
}
Description
Lightweight & Safe (buffer-writer | general object) pool.
buffer-poolbufferinggolanggolang-librarygolang-packagememory-allocatormemory-cachememory-managementmemory-poolmemory-pool-allocatormemory-pool-systemmemory-poolingpooling
Readme
AGPL-3.0
88 KiB
Languages
Go
100%