1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 02:00:30 +08:00

doc: edit README

This commit is contained in:
源文雨
2025-02-25 21:07:53 +09:00
parent a17db441b5
commit 2c97cceb0e

View File

@@ -12,6 +12,7 @@ import (
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.
b.KeepAlive() // Mark as reachable.
// After that, b will be auto-reused on GC.
}
```