FillBytes

void FillBytes (char buffer[], int startingIndex, int numberOfBytes, int value);

Purpose

Sets the numberOfBytes bytes that start at position startingIndex of buffer to the value in the lower byte of value. startingIndex is zero–based.

Parameters

Input
Name Type Description
startingIndex integer Zero–based index specifying the offset within the buffer of the first byte to be modified.
numberOfBytes integer Number of bytes to fill.
value integer Value to which the selected bytes will be set. FillBytes uses only the lower 8 bits of the value.
Output
Name Type Description
buffer string Specifies the variable in which the bytes to be modified are located.

Return Value

None.