Documentation ¶
Overview ¶
Package buffer provides a pool-allocated byte buffer.
Index ¶
- type Buffer
- func (b *Buffer) Free()
- func (b *Buffer) Reset()
- func (b *Buffer) String() string
- func (b *Buffer) Write(p []byte) (int, error)
- func (b *Buffer) WriteByte(c byte) error
- func (b *Buffer) WritePosInt(i int)
- func (b *Buffer) WritePosIntWidth(i, width int)
- func (b *Buffer) WriteString(s string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer []byte
buffer adapted from go/src/fmt/print.go
func (*Buffer) WritePosInt ¶
func (*Buffer) WritePosIntWidth ¶
WritePosIntWidth writes non-negative integer i to the buffer, padded on the left by zeroes to the given width. Use a width of 0 to omit padding.
Click to show internal directories.
Click to hide internal directories.