Generated decode functions are invoked through the class interface by calling the base class Decode method. The calling sequence for this method is as follows:
status = <object>.Decode ();
In this definition, <object> is an object of the class generated for the given production.
An ASN1PERDecodeBuffer object must be passed to the <object> constructor prior to decoding. This is where the message start address and length are specified. A Boolean argument is also passed indicating whether the message to be decoded was encoded using aligned or unaligned PER
The function result variable status
returns the status of the decode
operation. The return status will be zero (0) if decoding is successful or a
negative value if an error occurs. Return status values are documented in the
C/C++ Common Functions Reference Manual and
in the rtxErrCodes.h include file.