FillMemory()
Syntax
FillMemory(*Memory, Size [, Value [, Type]])Description
Fills the '*Memory' area with the specified 'Value'. If no value is specified, it fills the memory area with 0.
The optional 'Type' parameter can be one of the following constants:#PB_Byte: Fills the memory using a byte (1 byte) value (default). #PB_Word: Fills the memory using a word (2 bytes) value. #PB_Long: Fills the memory using a long (4 bytes) value.Example:*Buffer = AllocateMemory(500) FillMemory(*Buffer, 500) ; Fill 500 bytes of value 0 (clear the memory area) FillMemory(*Buffer, 500, $FF) ; Fill 500 bytes of value $FF FillMemory(*Buffer, 500, $BADF00D, #PB_Long) ; Fill 500 bytes of value $BADF00D
Supported OS
All