+checklocksignore WriteBuffer is a write buffer for content of unknown size that manages data in a series of byte slices of uniform size.
| 12 | // WriteBuffer is a write buffer for content of unknown size that manages |
| 13 | // data in a series of byte slices of uniform size. |
| 14 | type WriteBuffer struct { |
| 15 | alloc *chunkAllocator |
| 16 | mu sync.Mutex |
| 17 | inner Bytes |
| 18 | } |
| 19 | |
| 20 | // Close releases all memory allocated by this buffer. |
| 21 | func (b *WriteBuffer) Close() { |
nothing calls this directly
no outgoing calls
no test coverage detected