The purpose of most methods is to produce some output, for example a string for display in the case of a Format Method. In every such case, the output is stored into designated variables. Methods do not return values and may not transmit results through parameters.
Output variables are described in detail in the following sections covering each method type. Here is a summary:
Output Variable for Each Method Type
|
Method Type |
Output Variable |
Significance |
|
Boolean |
bool bOk |
true or false |
|
Branch |
int iOutput |
reference to branch field in a table entry |
|
ByteStreamFramer |
bool bFrameTransformed; CArray<WORD,WORD> ausLowIndex; CArray<WORD,WORD> ausHighIndex; CArray<BYTE,BYTE> abVirtualFrame ebsfReturn eAction |
info so that the layer can be parsed. |
|
Format |
CString csOutput |
formatted string for display |
|
Frame Transformer |
bool bFrameTransformed; CArray<WORD,WORD> ausLowIndex; CArray<WORD,WORD> ausHighIndex; CArray<BYTE,BYTE> abVirtualFrame |
(see Frame Transformers) |
|
NextProtocol |
int64 i64Output |
numeric code for protocol |
|
NextProtocolOffset |
int iOutput |
offset in bytes |
|
NextProtocolSize |
int iOutput |
size in bytes |
|
PreProcessing |
|
(none) |
|
Processing |
|
(none) |
|
PostProcessing |
|
(none) |
|
Retrieval |
int64 i64FieldValue |
adjusted value |
|
int iFieldSize |
size in bits |
|
|
Size |
int iOutput |
bit count |
|
StartBit |
int iOutput |
bit offset |
|
Tag |
CString csOutput |
tag name |
|
Verify |
bool bOk |
true or false |
|
CString csOutput |
expected result if verification fails |