Grow guarantees that at least n bytes can be added to the Builder's underlying buffer without another allocation.
(n int)
| 32 | // Grow guarantees that at least n bytes can be added to the Builder's |
| 33 | // underlying buffer without another allocation. |
| 34 | func (b *Builder) Grow(n int) { |
| 35 | b.bytes = slices.Grow(b.bytes, n) |
| 36 | } |
| 37 | |
| 38 | // BeginContainer opens a new container. |
| 39 | func (b *Builder) BeginContainer() { |
no outgoing calls
no test coverage detected