()
| 14 | var pool64 *sync.Pool |
| 15 | |
| 16 | func init() { |
| 17 | var i uint |
| 18 | // TODO(pquerna): add science here around actual pool sizes. |
| 19 | for i = 6; i < 20; i++ { |
| 20 | n := 1 << i |
| 21 | pools[poolNum(n)].New = func() interface{} { return make([]byte, 0, n) } |
| 22 | } |
| 23 | pool64 = &pools[0] |
| 24 | } |
| 25 | |
| 26 | // This returns the pool number that will give a buffer of |
| 27 | // at least 'i' bytes. |
nothing calls this directly
no test coverage detected
searching dependent graphs…