Documentation
¶
Index ¶
- Variables
- func Append(pbuf *[]byte, more ...byte) *[]byte
- func AppendString(pbuf *[]byte, more string) *[]byte
- func Free(pbuf *[]byte)
- func Malloc(size int) *[]byte
- func Realloc(pbuf *[]byte, size int) *[]byte
- type AlignedAllocator
- func (amp *AlignedAllocator) Append(pbuf *[]byte, more ...byte) *[]byte
- func (amp *AlignedAllocator) AppendString(pbuf *[]byte, s string) *[]byte
- func (amp *AlignedAllocator) Free(pbuf *[]byte)
- func (amp *AlignedAllocator) Malloc(size int) *[]byte
- func (amp *AlignedAllocator) Realloc(pbuf *[]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(pbuf *[]byte, more ...byte) *[]byte
- func (mp *MemPool) AppendString(pbuf *[]byte, more string) *[]byte
- func (mp *MemPool) Free(pbuf *[]byte)
- func (mp *MemPool) Malloc(size int) *[]byte
- func (mp *MemPool) Realloc(pbuf *[]byte, size int) *[]byte
- func (d MemPool) SetDebug(dbg bool)
- func (d MemPool) String() string
- type TraceDebugger
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(pbuf *[]byte, more ...byte) *[]byte
Append .
func (*AlignedAllocator) AppendString ¶
func (amp *AlignedAllocator) AppendString(pbuf *[]byte, s string) *[]byte
AppendString .
type Allocator ¶
type DebugAllocator ¶
type MemPool ¶
type MemPool struct {
// contains filtered or unexported fields
}
MemPool .
func (*MemPool) AppendString ¶
AppendString .
type TraceDebugger ¶
type TraceDebugger struct {
// contains filtered or unexported fields
}
func NewTraceDebuger ¶
func NewTraceDebuger(allocator Allocator) *TraceDebugger
func (*TraceDebugger) Append ¶
func (td *TraceDebugger) Append(pbuf *[]byte, more ...byte) *[]byte
Append .
func (*TraceDebugger) AppendString ¶
func (td *TraceDebugger) AppendString(pbuf *[]byte, more string) *[]byte
AppendString .
Click to show internal directories.
Click to hide internal directories.