MCPcopy Create free account
hub / github.com/valyala/bytebufferpool / Pool

Struct Pool

pool.go:25–33  ·  view source on GitHub ↗

Pool represents byte buffer pool. Distinct pools may be used for distinct types of byte buffers. Properly determined byte buffer types with their own pools may help reducing memory waste.

Source from the content-addressed store, hash-verified

23// Properly determined byte buffer types with their own pools may help reducing
24// memory waste.
25type Pool struct {
26 calls [steps]uint64
27 calibrating uint64
28
29 defaultSize uint64
30 maxSize uint64
31
32 pool sync.Pool
33}
34
35var defaultPool Pool
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected