1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 02:00:30 +08:00
Go to file
2025-02-25 19:09:31 +09:00
2025-02-25 13:46:51 +09:00
2025-02-25 19:09:31 +09:00
2025-02-24 16:16:43 +09:00
2025-02-25 13:46:51 +09:00
2025-02-24 23:52:18 +09:00
2025-02-25 16:50:06 +09:00
2025-02-24 16:16:43 +09:00
2025-02-25 00:16:57 +09:00
2025-02-25 13:59:39 +09:00
2025-02-24 23:52:18 +09:00
2025-02-24 23:52:18 +09:00
2025-02-25 13:44:48 +09:00

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.
}
Languages
Go 100%