package iobufpool
Import Path
github.com/jackc/pgx/v5/internal/iobufpool (on go.dev)
Dependency Relation
imports one package, and imported by 3 packages
Involved Source Files
Package iobufpool implements a global segregated-fit pool of buffers for IO.
It uses *[]byte instead of []byte to avoid the sync.Pool allocation with Put. Unfortunately, using a pointer to avoid
an allocation is purposely not documented. https://github.com/golang/go/issues/16323
Package-Level Functions (total 2)
Get gets a []byte of len size with cap <= size*2.
Put returns buf to the pool.
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |