TOC PREV NEXT INDEX


Generated C++ Decode Method Format and Calling Parameters



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 (ASN_OK) if decoding is successful or a negative value if an error occurs. Return status values are defined in Appendix A of the C/C++ Common Functions Reference Manual of this document and online in the asn1type.h include file.



Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com
TOC PREV NEXT INDEX