Kernel32FillMemory Method

Fills a block of memory with a specified value.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", EntryPoint = "RtlFillMemory", SetLastError = true)]
public static void FillMemory(
	IntPtr destination,
	IntPtr length,
	byte fillValue
)

Parameters

destination  IntPtr
A pointer to the starting address of the block of memory to fill.
length  IntPtr
The size of the block of memory to fill, in bytes. This value must be less than the size of the destination buffer.
fillValue  Byte
The byte value with which to fill the memory block.

Remarks

See Also