TOC PREV NEXT INDEX


Generated BER Encode Functions


NOTE: This section assumes standard memory-buffer based encoding is to be done. If stream-based encoding is to be done (specified by adding -stream to the ASN1C command-line), see the Generated BER Stream-Oriented Encode Functions section for correct procedures on using the stream-based encode functions.


For each ASN.1 production defined in the ASN.1 source file, a C encode function is generated. This function will convert a populated C variable of the given type into an 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 convert a populated msgData attribute variable into an encoded ASN.1 message.



Objective Systems, Inc.

55 Dowlin Forge Road
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