Class MemChunk
public class MemChunk
- Inheritance
-
MemChunk
- Inherited Members
Methods
Alloc(MemChunkHandle)
Calls native method g_mem_chunk_alloc.
public static extern IntPtr Alloc(MemChunkHandle memChunk)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
Alloc0(MemChunkHandle)
Calls native method g_mem_chunk_alloc0.
public static extern IntPtr Alloc0(MemChunkHandle memChunk)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
Clean(MemChunkHandle)
Calls native method g_mem_chunk_clean.
public static extern void Clean(MemChunkHandle memChunk)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False
Destroy(MemChunkHandle)
Calls native method g_mem_chunk_destroy.
public static extern void Destroy(MemChunkHandle memChunk)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False
Free(MemChunkHandle, IntPtr)
Calls native method g_mem_chunk_free.
public static extern void Free(MemChunkHandle memChunk, IntPtr mem)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False
mem
IntPtrTransfer ownership: None Nullable: True
Info()
Calls native function g_mem_chunk_info.
public static extern void Info()
New(NonNullableUtf8StringHandle, int, nuint, int)
Calls native function g_mem_chunk_new.
public static extern MemChunkUnownedHandle New(NonNullableUtf8StringHandle name, int atomSize, nuint areaSize, int type)
Parameters
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
atomSize
intTransfer ownership: None Nullable: False
areaSize
nuintTransfer ownership: None Nullable: False
type
intTransfer ownership: None Nullable: False
Returns
- MemChunkUnownedHandle
Transfer ownership: None Nullable: False
Print(MemChunkHandle)
Calls native method g_mem_chunk_print.
public static extern void Print(MemChunkHandle memChunk)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False
Reset(MemChunkHandle)
Calls native method g_mem_chunk_reset.
public static extern void Reset(MemChunkHandle memChunk)
Parameters
memChunk
MemChunkHandleTransfer ownership: None Nullable: False