Module
System.Runtime.InteropServices.NativeMemory
module System.Runtime.InteropServices.NativeMemory
Unmanaged allocation
Alloc reserves unmanaged memory by byte count or checked element-count multiplication; Free releases an allocation. These unsafe module functions are separate from managed objects and arrays.
Callers own allocation lifetime and pointer validity. Consult each overload for faults and supported pointer operations; managed garbage collection does not replace the required Free call.
Functions
5 items
Static member:
Alloc(byteCount: UIntPtr) -> *void
No summary available.
Static member:
Alloc(elementCount: UIntPtr, elementSize: UIntPtr) -> *void
No summary available.
Static member:
Copy(source: *void, sourceByteCount: UIntPtr, destination: Slice<byte>) -> ()
No summary available.
Static member:
Copy(source: ReadOnlySlice<byte>, destination: *void, destinationByteCount: UIntPtr) -> ()
No summary available.
Static member:
Free(pointer: *void) -> ()
No summary available.