FillMem(id, val, size[, offset, type])
id
specifies the memory block to use,
val
is the value to use for filling and size
specifies the size in
bytes for the filling operation. You can use the optional argument
offset to fine-tune the filling operation by specifying an offset in
the memory block here (in bytes). type
specifies the type of the value
and can be #BYTE
(1 byte), #SHORT
(2 bytes) or #INTEGER
(4 bytes).
If you use #SHORT
or #INTEGER
as the filling type, the size
argument
must be a multiple of 2 or 4 respectively. Also, offset
, if specified,
must be a multiple of 2 or 4 respectively.
#SHORT
or #INTEGER
#SHORT
or #INTEGER
#BYTE
, #SHORT
and #INTEGER
(defaults to #BYTE
)AllocMem(1, 65536) FillMem(1, 0, 65536)Allocate a block of 64kb and initialize it to 0.