- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for newBufPool (0.04 sec)
-
internal/handlers/forwarder.go
return } b.pool.Put(&buf) } func (b *bufPool) Get() []byte { bufp := b.pool.Get() if bufp == nil || cap(*bufp) < b.sz { return make([]byte, 0, b.sz) } return (*bufp)[:b.sz] } func newBufPool(sz int) httputil.BufferPool { return &bufPool{sz: sz, pool: bpool.Pool[*[]byte]{ New: func() *[]byte { buf := make([]byte, sz) return &buf }, }} }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 5.7K bytes - Viewed (0)