Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) Append(p []byte)
- func (b *Buffer) AppendByte(bb byte)
- func (b *Buffer) AppendString(s string)
- func (b *Buffer) AppendUint16(n uint16)
- func (b *Buffer) AppendUint32(n uint32)
- func (b *Buffer) AppendUint64(n uint64)
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Detach() []byte
- func (b *Buffer) Len() int
- func (b *Buffer) Next(n int64) ([]byte, bool)
- func (b *Buffer) PeekByte() (byte, error)
- func (b *Buffer) ReadByte() (byte, error)
- func (b *Buffer) ReadFromOnce(r io.Reader) error
- func (b *Buffer) ReadUint16() (uint16, error)
- func (b *Buffer) ReadUint32() (uint32, error)
- func (b *Buffer) ReadUint64() (uint64, error)
- func (b *Buffer) Reclaim()
- func (b *Buffer) Reset()
- func (b *Buffer) Size() int
- func (b *Buffer) Skip(n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
buffer is similar to bytes.Buffer but specialized for this package
func (*Buffer) AppendByte ¶
func (*Buffer) AppendString ¶
func (*Buffer) AppendUint16 ¶
func (*Buffer) AppendUint32 ¶
func (*Buffer) AppendUint64 ¶
func (*Buffer) ReadUint16 ¶
func (*Buffer) ReadUint32 ¶
func (*Buffer) ReadUint64 ¶
Click to show internal directories.
Click to hide internal directories.