Class NativeMemoryImpl
Inheritance
System.Object
NativeMemoryImpl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.Core_Plugs.System.Runtime.InteropServices
Assembly: Cosmos.Core_Plugs.dll
Syntax
public static class NativeMemoryImpl
Methods
| Improve this Doc View SourceAlloc(UIntPtr)
Declaration
public static void *Alloc(nuint byteCount)
Parameters
Type | Name | Description |
---|---|---|
System.UIntPtr | byteCount |
Returns
Type | Description |
---|---|
System.Void* |
Alloc(UIntPtr, UIntPtr)
Declaration
public static void *Alloc(nuint elementCount, nuint elementSize)
Parameters
Type | Name | Description |
---|---|---|
System.UIntPtr | elementCount | |
System.UIntPtr | elementSize |
Returns
Type | Description |
---|---|
System.Void* |
Free(Void*)
Declaration
public static void Free(void *ptr)
Parameters
Type | Name | Description |
---|---|---|
System.Void* | ptr |
Realloc(Void*, UIntPtr)
Declaration
public static void *Realloc(void *ptr, nuint byteCount)
Parameters
Type | Name | Description |
---|---|---|
System.Void* | ptr | |
System.UIntPtr | byteCount |
Returns
Type | Description |
---|---|
System.Void* |