Documentation ¶
Index ¶
- func ArenaCalloc(arena unsafe.Pointer, count uintptr, size uintptr) unsafe.Pointer
- func ArenaCreate() unsafe.Pointer
- func ArenaDestroy(arena unsafe.Pointer)
- func ArenaFree(_ unsafe.Pointer, ptr unsafe.Pointer)
- func ArenaMSize(_ unsafe.Pointer, ptr unsafe.Pointer) uintptr
- func ArenaMalloc(arena unsafe.Pointer, size uintptr) unsafe.Pointer
- func ArenaRealloc(arena unsafe.Pointer, ptr unsafe.Pointer, size uintptr) unsafe.Pointer
- func Calloc(count uintptr, size uintptr) unsafe.Pointer
- func Free(ptr unsafe.Pointer)
- func MSize(ptr unsafe.Pointer) uintptr
- func Malloc(size uintptr) unsafe.Pointer
- func Realloc(ptr unsafe.Pointer, size uintptr) unsafe.Pointer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArenaCalloc ¶
ArenaCalloc allocates memory like Calloc but in the given arena.
func ArenaCreate ¶
ArenaCreate creates a new arena. An arena groups a set of memory allocations.
func ArenaDestroy ¶
ArenaDestroy destroys the given arena. All allocated memory of this arena will be also freed.
func ArenaMSize ¶
ArenaMSize returns the size of an allocated block of unmanaged memory.
func ArenaMalloc ¶
ArenaMalloc allocates memory like Malloc but in the given arena.
func ArenaRealloc ¶
ArenaRealloc re-allocates memory like Realloc but in the given arena.
func Calloc ¶
Calloc allocates a contiguous block of unmanaged memory. Total amount in bytes is count multiplied by size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.