Buffer2Complex - Read complex data from a buffer string |
Top Previous Next |
<returnValue> := Buffer2Complex( <cDataBuffer>, @<outData>, [<nStringType>] ) <cDataBuffer>
Buffer string of data to be analyzed according to <outData> and to be read into <outData>. The data type must be "C" for this analysis. If <cDatabuffer>'s type is not character, Buffer2Complex returns the value NIL without doing anything.
<outData>
This parameter provides Buffer2Complex with the necessary structural information to analyze <cDataBuffer> and at the same time holds the target element(s) for the information extracted from <cDataBuffer>. <outData> will normally be the array that was passed to Complex2Buffer beforehand. It is used to determine the organization, length and type of the elements in <cDataBuffer> when they are read, converted and moved into the target elements in <outData>.
<nStringType>
This parameter's value determines the interpretation of all strings found in <cDataBuffer>. See Cockpit string types for details. The default for <nStringType> is STRINGTYPE_BINARY. The converted complex data from <cDataBuffer>. If <outData> is passed by reference, <returnValue> is identical to <outData> after the call. Buffer2Complex analyzes the data buffer passed in as <cDataBuffer> according to the structural, type and length information found in <outData>. Each element extracted from <cDataBuffer> is assigned to a target element in <outData>. If structures are found in <outData>, their :Unlock() method is called.
Buffer2Complex is the inverse function to Complex2Buffer.
Data extraction from <cDataBuffer> into <outData> is done according to the following table.
Core Library: cckptcor.lib / cckptcor.dll Header: StringTypes.ch
|