Generated PER Encode Functions

Generated C Function Format and Calling Parameters
Generated C++ Encode Method Format and Calling Parameters
Populating Generated Structure Variables for Encoding
Procedure for Calling C Encode Functions
Procedure for Using the C++ Control Class Encode Method
Encoding a Series of PER Messages using the C++ Interface

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 encode function is generated. This function will convert a populated C variable of the given type into a PER encoded ASN.1 message.

If C++ code generation is specified, a control class is generated that contains an Encode 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.