Прочетете на английски Редактиране

Споделяне чрез


NativeMemory.Fill(Void*, UIntPtr, Byte) Method

Definition

Important

This API is not CLS-compliant.

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

C#
[System.CLSCompliant(false)]
public static void Fill(void* ptr, UIntPtr byteCount, byte value);

Parameters

ptr
Void*

A pointer to the block of memory to fill.

byteCount
UIntPtr

The number of bytes to be set to value.

value
Byte

The value to be set.

Attributes

Applies to

Продукт Версии
.NET 7, 8, 9, 10