Documentation ¶
Index ¶
- Variables
- type Buffer
- func (b *Buffer) Append(data []byte) *Buffer
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) CapTo(size int)
- func (b *Buffer) Check(size int) bool
- func (b *Buffer) Gap() int
- func (b *Buffer) MustAppend(size int, data []byte) []byte
- func (b *Buffer) MustCopy(size int, bp []byte) *Buffer
- func (b *Buffer) MustPutBytes(data []byte) *Buffer
- func (b *Buffer) MustPutCRC32() *Buffer
- func (b *Buffer) MustPutUint16(u16 uint16) *Buffer
- func (b *Buffer) MustPutUint32(u32 uint32) *Buffer
- func (b *Buffer) MustPutUint32String(s string) *Buffer
- func (b *Buffer) MustPutUint64(u64 uint64) *Buffer
- func (b *Buffer) MustPutUint8(u8 uint8) *Buffer
- func (b *Buffer) MustRef(size int, bp *[]byte) *Buffer
- func (b *Buffer) MustSkip(n int) *Buffer
- func (b *Buffer) MustTake(dst []byte) *Buffer
- func (b *Buffer) MustUint16(u16 *uint16) *Buffer
- func (b *Buffer) MustUint32(u32 *uint32) *Buffer
- func (b *Buffer) MustUint64(u64 *uint64) *Buffer
- func (b *Buffer) MustUint8(u8 *uint8) *Buffer
- func (b *Buffer) Peek(i int) byte
- func (b *Buffer) Pos() int
- func (b *Buffer) Remain() int
- func (b *Buffer) Uint32() (uint32, error)
- func (b *Buffer) Uint32String() (string, error)
- func (b *Buffer) Uint8() (uint8, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnough = errors.New("buffer: not enough")
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) MustPutBytes ¶
func (*Buffer) MustPutCRC32 ¶
func (*Buffer) MustPutUint16 ¶
func (*Buffer) MustPutUint32 ¶
func (*Buffer) MustPutUint32String ¶
func (*Buffer) MustPutUint64 ¶
Go is sutpid and not way to inline below
func (*Buffer) MustPutUint8 ¶
func (*Buffer) MustUint16 ¶
func (*Buffer) MustUint32 ¶
func (*Buffer) MustUint64 ¶
func (*Buffer) Uint32String ¶
Click to show internal directories.
Click to hide internal directories.