Documentation ¶
Index ¶
- Variables
- func Copy(dst io.Writer, src *ReaderV) (n int64, err error)
- func Get(size int) []byte
- func Put(buf []byte) error
- func PutMulti(buffers [][]byte)
- type Allocator
- type Buffer
- func (b *Buffer) Advance(from int)
- func (b *Buffer) Byte(index int) byte
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (b *Buffer) Closed() bool
- func (b *Buffer) Cut(start int, end int) *Buffer
- func (b *Buffer) Extend(n int) []byte
- func (b *Buffer) ExtendHeader(n int) []byte
- func (b *Buffer) FreeBytes() []byte
- func (b *Buffer) FreeLen() int
- func (b *Buffer) From(n int) []byte
- func (b *Buffer) FullReset()
- func (b *Buffer) Index(start int) []byte
- func (b *Buffer) IsEmpty() bool
- func (b *Buffer) IsFull() bool
- func (b *Buffer) Len() int
- func (b *Buffer) Peek(n int) (bytes []byte, err error)
- func (b *Buffer) Range(start, end int) []byte
- func (b *Buffer) Read(data []byte) (n int, err error)
- func (b *Buffer) ReadAtLeastFrom(r io.Reader, min int) (int64, error)
- func (b *Buffer) ReadByte() (byte, error)
- func (b *Buffer) ReadFrom(reader io.Reader) (n int64, err error)
- func (b *Buffer) ReadFullFrom(r io.Reader, size int) (n int, err error)
- func (b *Buffer) ReadOnceFrom(r io.Reader) (int64, error)
- func (b *Buffer) Release()
- func (b *Buffer) Reset(pos int)
- func (b *Buffer) Resize(start, end int)
- func (b *Buffer) Rewind(start int)
- func (b *Buffer) SetByte(index int, value byte)
- func (b *Buffer) Slice() []byte
- func (b *Buffer) Start() int
- func (b *Buffer) To(n int) []byte
- func (b *Buffer) ToOwned() *Buffer
- func (b *Buffer) Truncate(to int)
- func (b *Buffer) Write(data []byte) (n int, err error)
- func (b *Buffer) WriteByte(d byte) error
- func (b *Buffer) WriteRune(s rune) (int, error)
- func (b *Buffer) WriteString(s string) (int, error)
- func (b *Buffer) WriteTo(w io.Writer) (int64, error)
- func (b *Buffer) WriteZero() error
- func (b *Buffer) WriteZeroN(n int) error
- type ReaderV
- type WriterV
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAllocator = newDefaultAllocer()
View Source
var ErrBadBufferSize = errors.New("allocator incorrect buffer size")
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) ExtendHeader ¶
func (*Buffer) ReadAtLeastFrom ¶
func (*Buffer) ReadFullFrom ¶
func (*Buffer) WriteZeroN ¶
type ReaderV ¶
ReaderV is a Reader that uses readv(2) syscall to read data.
func NewReaderV ¶
NewReaderV creates a new ReaderV.
Click to show internal directories.
Click to hide internal directories.