ערוך

שתף באמצעות


NativeMemory Class

Definition

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 source to memory location destination.

Fill(Void*, UIntPtr, Byte)

Copies the byte value to the first byteCount bytes of the memory located at ptr.

Free(Void*)

Frees a block of memory.

Realloc(Void*, UIntPtr)

Reallocates a block of memory to be the specified size, in bytes.

Applies to