()
| 148 | } |
| 149 | |
| 150 | func (b *WriteBuffer) allocChunk() []byte { |
| 151 | if b.alloc == nil { |
| 152 | b.alloc = defaultAllocator |
| 153 | } |
| 154 | |
| 155 | return b.alloc.allocChunk() |
| 156 | } |
| 157 | |
| 158 | // Dup creates a clone of the WriteBuffer. |
| 159 | func (b *WriteBuffer) Dup() *WriteBuffer { |
no outgoing calls
no test coverage detected