buffer

Imports

Imports #

"sync"

Constants & Variables

bufPool var #

Having an initial size gives a dramatic speedup.

var bufPool = sync.Pool{...}

Type Aliases

Buffer type #

Buffer is a byte buffer. This implementation is adapted from the unexported type buffer in go/src/fmt/print.go.

type Buffer []byte

Functions

Free method #

func (b *Buffer) Free()

Len method #

func (b *Buffer) Len() int

New function #

func New() *Buffer

Reset method #

func (b *Buffer) Reset()

SetLen method #

func (b *Buffer) SetLen(n int)

String method #

func (b *Buffer) String() string

Write method #

func (b *Buffer) Write(p []byte) (int, error)

WriteByte method #

func (b *Buffer) WriteByte(c byte) error

WriteString method #

func (b *Buffer) WriteString(s string) (int, error)

Generated with Arrow