BufferPool represents a pool of buffers. The *sync.Pool type satisfies this interface. The type of the value stored in a pool is not specified.
| 227 | // BufferPool represents a pool of buffers. The *sync.Pool type satisfies this |
| 228 | // interface. The type of the value stored in a pool is not specified. |
| 229 | type BufferPool interface { |
| 230 | // Get gets a value from the pool or returns nil if the pool is empty. |
| 231 | Get() interface{} |
| 232 | // Put adds a value to the pool. |
| 233 | Put(interface{}) |
| 234 | } |
| 235 | |
| 236 | // writePoolData is the type added to the write buffer pool. This wrapper is |
| 237 | // used to prevent applications from peeking at and depending on the values |
no outgoing calls
no test coverage detected