Registry / utility / valyala-bytebufferpool

valyala-bytebufferpool

JSON →
library1.0.0gogounverified

Implements a pool of byte buffers with anti-fragmentation protection for efficient reuse.

go get github.com/valyala/bytebufferpool
INSTALL
IMPORT
SIG · VALYALA-BYTEBUFFER
V
valyala-bytebufferpool
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bytebufferpool
github.com/valyala/bytebufferpool

Gets a byte buffer from the pool, writes to it, and returns it.

package main import ( "fmt" "github.com/valyala/bytebufferpool" ) func main() { buf := bytebufferpool.Get() defer bytebufferpool.Put(buf) buf.WriteString("Hello, world!") fmt.Println(buf.String()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
valyala-bytebufferpool — go get valyala-bytebufferpool · libregistry