Documentation ¶
Index ¶
- Variables
- func Append(buf []byte, more ...byte) []byte
- func AppendString(buf []byte, more string) []byte
- func Free(buf []byte)
- func Malloc(size int) []byte
- func Realloc(buf []byte, size int) []byte
- type AlignedAllocator
- func (amp *AlignedAllocator) Append(buf []byte, more ...byte) []byte
- func (amp *AlignedAllocator) AppendString(buf []byte, s string) []byte
- func (amp *AlignedAllocator) Free(buf []byte)
- func (amp *AlignedAllocator) Malloc(size int) []byte
- func (amp *AlignedAllocator) Realloc(buf []byte, size int) []byte
- func (d AlignedAllocator) SetDebug(dbg bool)
- func (d AlignedAllocator) String() string
- type Allocator
- type DebugAllocator
- type MemPool
- func (mp *MemPool) Append(buf []byte, more ...byte) []byte
- func (mp *MemPool) AppendString(buf []byte, more string) []byte
- func (mp *MemPool) Free(buf []byte)
- func (mp *MemPool) Malloc(size int) []byte
- func (mp *MemPool) Realloc(buf []byte, size int) []byte
- func (d MemPool) SetDebug(dbg bool)
- func (d MemPool) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMemPool = New(1024, 1024*1024*1024)
DefaultMemPool .
Functions ¶
func AppendString ¶
Types ¶
type AlignedAllocator ¶
type AlignedAllocator struct {
// contains filtered or unexported fields
}
AlignedAllocator .
func (*AlignedAllocator) Append ¶
func (amp *AlignedAllocator) Append(buf []byte, more ...byte) []byte
Append .
func (*AlignedAllocator) AppendString ¶
func (amp *AlignedAllocator) AppendString(buf []byte, s string) []byte
AppendString .
type Allocator ¶
type DebugAllocator ¶
type MemPool ¶
type MemPool struct {
// contains filtered or unexported fields
}
MemPool .
func (*MemPool) AppendString ¶
AppendString .
Click to show internal directories.
Click to hide internal directories.