語言

NativeMemory.Fill(Void*, UIntPtr, Byte) 方法

定義

重要

此 API 不符合 CLS 規範。

將位元組value複製到位於 ptr的記憶體前幾個byteCount位元組。

public:
 static void Fill(void* ptr, UIntPtr byteCount, System::Byte value);
[System.CLSCompliant(false)]
public static void Fill(void* ptr, UIntPtr byteCount, byte value);
[<System.CLSCompliant(false)>]
static member Fill : nativeptr<unit> * unativeint * byte -> unit

參數

ptr
Void*

一個指向要填滿的記憶體區塊的指標。

byteCount
UIntPtr

unativeint

要設定為 value的位元組數。

value
Byte

要設定的價值。

屬性

適用於