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) |
Allocates a block of memory of the specified size, in bytes. |
Alloc(UIntPtr, UIntPtr) |
Allocates 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. |
AllocZeroed(UIntPtr, UIntPtr) |
Allocates and zeroes a block of memory of the specified size, in elements. |
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. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기