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.
| 23 | // Properly determined byte buffer types with their own pools may help reducing |
| 24 | // memory waste. |
| 25 | type Pool struct { |
| 26 | calls [steps]uint64 |
| 27 | calibrating uint64 |
| 28 | |
| 29 | defaultSize uint64 |
| 30 | maxSize uint64 |
| 31 | |
| 32 | pool sync.Pool |
| 33 | } |
| 34 | |
| 35 | var defaultPool Pool |
| 36 |
nothing calls this directly
no outgoing calls
no test coverage detected