NativeMemory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class contains methods that are mainly used to manage native memory.
public ref class NativeMemory abstract sealed
public static class NativeMemory
type NativeMemory = class
Public Class NativeMemory
- Inheritance
-
NativeMemory
Methods
AlignedAlloc(UIntPtr, UIntPtr) |
Allocates an aligned block of memory of the specified size and alignment, in bytes. |
AlignedFree(Void*) |
Frees an aligned block of memory. |
AlignedRealloc(Void*, UIntPtr, UIntPtr) |
Reallocates an aligned block of memory of the specified size and alignment, in bytes. |
Alloc(UIntPtr, UIntPtr) |
Allocates a block of memory of the specified size, in elements. |
Alloc(UIntPtr) |
Allocates a block of memory of the specified size, in bytes. |
AllocZeroed(UIntPtr, UIntPtr) |
Allocates and zeroes a block of memory of the specified size, in elements. |
AllocZeroed(UIntPtr) |
Allocates and zeroes a block of memory of the specified size, in bytes. |
Clear(Void*, UIntPtr) |
Clears a block of memory. |
Copy(Void*, Void*, UIntPtr) |
Copies a block of memory from memory location |
Fill(Void*, UIntPtr, Byte) |
Copies the byte |
Free(Void*) |
Frees a block of memory. |
Realloc(Void*, UIntPtr) |
Reallocates a block of memory to be the specified size, in bytes. |