Documentation
¶
Index ¶
- Variables
- type Allocator
- type Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (b *Buffer) Close() error
- func (b *Buffer) CopyBytes() []byte
- func (b *Buffer) DecRef()
- func (b *Buffer) Discard(n int) (nn int, err error)
- func (b *Buffer) Empty() bool
- func (b *Buffer) Free()
- func (b *Buffer) FreeBytes() []byte
- func (b *Buffer) Full() bool
- func (b *Buffer) IncRef()
- func (b *Buffer) Len() int
- func (b *Buffer) Peek(n int) ([]byte, error)
- func (b *Buffer) Read(bs []byte) (n int, err error)
- func (b *Buffer) ReadByte() (byte, error)
- func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error)
- func (b *Buffer) ReadFromOnce(r io.Reader) (n int, err error)
- func (b *Buffer) ReadFull(r io.Reader, length int) (n int, err error)
- func (b *Buffer) Reset()
- func (b *Buffer) Resize(n int) error
- func (b *Buffer) Size() int
- func (b *Buffer) Truncated(n int)
- func (b *Buffer) Write(bs []byte) (n int, err error)
- func (b *Buffer) WriteByte(by byte) error
- func (b *Buffer) WriteString(s string) (n int, err error)
- func (b *Buffer) WriteTo(w io.Writer) (n int64, err error)
- func (b *Buffer) WriteToOnce(w io.Writer) (n int, err error)
- type Pool
- func NewPool(size int) *Pooldeprecated
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer Note: buffer is thread-unsafe
func NewMinimal ¶ added in v0.0.6
func NewMinimal() *Buffer
Click to show internal directories.
Click to hide internal directories.