Generated PER Decode Functions

Generated C Function Format and Calling Parameters
Generated C++ Decode Method Format and Calling Parameters
Procedure for Calling C Decode Functions
Procedure for Using the C++ Control Class Decode Method
Decoding a Series of Messages Using the C++ Control Class Interface
Performance Considerations: Dynamic Memory Management

PER encode/decode functions are generated when the -per switch is specified on the command line. For each ASN.1 production defined in the ASN.1 source file, a C PER decode function is generated. This function will parse the data contents from a PER-encoded ASN.1 message and populate a variable of the corresponding type with the data.

If C++ code generation is specified, a control class is generated that contains a Decode method that wraps this function. This function is invoked through the class interface to encode an ASN.1 message into the variable referenced in the msgData component of the class.