GetByteSlice retrieves a byte slice from the pool
()
| 37 | |
| 38 | // GetByteSlice retrieves a byte slice from the pool |
| 39 | func GetByteSlice() *[]byte { |
| 40 | return ByteSlicePool.Get().(*[]byte) |
| 41 | } |
| 42 | |
| 43 | // PutByteSlice returns a byte slice to the pool |
| 44 | func PutByteSlice(b *[]byte) { |