Format data into a character stream.
Source position: exec.pas line 1263
function RawDoFmt( |
const formatString: pCHAR; |
const dataStream: POINTER; |
putChProc: tPROCEDURE; |
putChData: POINTER |
):pointer; |
const formatString: string; |
const dataStream: POINTER; |
putChProc: tPROCEDURE; |
putChData: POINTER |
):pointer; |
formatString |
|
%[flags][width.limit][length]type |
dataStream |
|
A pointer to a zone of memory containing the data. Data has to be WORD aligned. |
putChProc |
|
Callback function. Called for each character, including the NULL terminator. or one of the values RAWFMTFUNC_* |
putChData |
|
Data propagated to each call of the callback hook. |
A pointer to the rest of the DataStream.
formatString |
|
%[flags][width.limit][length]type |
dataStream |
|
A pointer to a zone of memory containing the data. Data has to be WORD aligned. |
putChProc |
|
Callback function. Called for each character, including the NULL terminator. or one of the values RAWFMTFUNC_* |
putChData |
|
Data propagated to each call of the callback hook. |
perform "C"-language-like formatting of a data stream, outputting the result a character at a time. Where % formatting commands are found in the FormatString, they will be replaced with the corresponding element in the DataStream. %% must be used in the string if a % is desired in the output.