1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 18:20:31 +08:00
Files
orbyte/README.md
源文雨 eec7c4821d init
2025-02-24 23:52:18 +09:00

18 lines
337 B
Markdown

# orbyte
Lightweight & Safe (buffer-writer | general object) pool.
## Quick Start
```go
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.
}
```