Imports #
"sync"
"sync"
Having an initial size gives a dramatic speedup.
var bufPool = sync.Pool{...}Buffer is a byte buffer. This implementation is adapted from the unexported type buffer in go/src/fmt/print.go.
type Buffer []bytefunc (b *Buffer) Free()func (b *Buffer) Len() intfunc New() *Bufferfunc (b *Buffer) Reset()func (b *Buffer) SetLen(n int)func (b *Buffer) String() stringfunc (b *Buffer) Write(p []byte) (int, error)func (b *Buffer) WriteByte(c byte) errorfunc (b *Buffer) WriteString(s string) (int, error)Generated with Arrow