()
| 7 | var copyBufPool = sync.Pool{New: func() any { return new([copyBufPoolSize]byte) }} |
| 8 | |
| 9 | func getCopyBuf() []byte { |
| 10 | return copyBufPool.Get().(*[copyBufPoolSize]byte)[:] |
| 11 | } |
| 12 | |
| 13 | func putCopyBuf(b []byte) { |
| 14 | if len(b) != copyBufPoolSize { |
no test coverage detected
searching dependent graphs…