共用方式為


NativeMemory.AlignedFree(Void*) 方法

定義

重要

此 API 不符合 CLS 規範。

釋放對齊的記憶體區塊。

public:
 static void AlignedFree(void* ptr);
[System.CLSCompliant(false)]
public static void AlignedFree (void* ptr);
[<System.CLSCompliant(false)>]
static member AlignedFree : nativeptr<unit> -> unit

參數

ptr
Void*

應該釋放之對齊記憶體區塊的指標。

屬性

備註

如果 ptrnull,則這個方法不會執行任何動作。

此方法是 C free API 的精簡包裝函式,或與平臺相依的可用 API,例如 _aligned_free Win32。

適用於