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 ¶ added in v1.2.15
Types ¶
type AlignedAllocator ¶ added in v1.4.0
type AlignedAllocator struct {
// contains filtered or unexported fields
}
AlignedAllocator .
func (*AlignedAllocator) Append ¶ added in v1.4.0
func (amp *AlignedAllocator) Append(pbuf *[]byte, more ...byte) *[]byte
Append .
func (*AlignedAllocator) AppendString ¶ added in v1.4.0
func (amp *AlignedAllocator) AppendString(pbuf *[]byte, s string) *[]byte
AppendString .
func (*AlignedAllocator) Free ¶ added in v1.4.0
func (amp *AlignedAllocator) Free(pbuf *[]byte)
Free .
func (*AlignedAllocator) Malloc ¶ added in v1.4.0
func (amp *AlignedAllocator) Malloc(size int) *[]byte
Malloc .
type Allocator ¶ added in v1.2.6
type DebugAllocator ¶ added in v1.4.0
type MemPool ¶
type MemPool struct {
// contains filtered or unexported fields
}
MemPool .
func (*MemPool) AppendString ¶ added in v1.2.15
AppendString .
type TraceDebugger ¶ added in v1.5.9
type TraceDebugger struct {
// contains filtered or unexported fields
}
func NewTraceDebuger ¶ added in v1.5.9
func NewTraceDebuger(allocator Allocator) *TraceDebugger
func (*TraceDebugger) Append ¶ added in v1.5.9
func (td *TraceDebugger) Append(pbuf *[]byte, more ...byte) *[]byte
Append .
func (*TraceDebugger) AppendString ¶ added in v1.5.9
func (td *TraceDebugger) AppendString(pbuf *[]byte, more string) *[]byte
AppendString .
func (*TraceDebugger) Malloc ¶ added in v1.5.9
func (td *TraceDebugger) Malloc(size int) *[]byte
Malloc .
Click to show internal directories.
Click to hide internal directories.