Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_LowLevel🞂FillLongwordProcedure

FillLongword

Fills a contiguous memory block with a specified 32-bit Longword value.

Declaration ​

pascal
procedure FillLongword(var X; Count: Cardinal; Value: Longword);

Parameters ​

ParameterTypeDescription
XvarThe starting destination memory location to fill.
CountCardinalNumber of 32-bit Longword elements (4-byte blocks) to write.
ValueLongword32-bit value (e.g. TColor32 pixel value) to write into each element.

Description ​

FillLongword fills a block of memory with 32-bit values. It operates analogously to System.FillChar, but writes 32-bit Longword units instead of 8-byte Byte units.

In Graphics32, FillLongword is widely used for rapidly clearing or setting solid background colors across 32-bit pixel buffers (such as bitmap scanlines or entire pixel arrays).

Although implemented internally as a function delegate bound to the fastest CPU implementation (Pascal, x86/x64 assembly, or SSE2), it is used and documented as a standard procedure.

See also ​