Download Procedure for Calling C# PER Encode Methods
Transcript
Using the Compiler Option Argument Description -nspfx <prefixName> This is a C# option for adding a prefix in front of the assigned C# namespace name. By default, the C# namespace name is set to the module name. If the namespace is embedded within a hierarchy, this option can be used to set the prefix that must be added to allow C# to find the class definition. -o <directory> This option is used to specify the name of a directory to which all of the generated files will be written. -pdu <typeName> Designate given type name to be a Protocol Definition Unit (PDU) type. By default, PDU types are determined to be types that are not referenced by any other types within a module. This option allows that behavior to be overridden. The * wildcard character may be specified for <typeName> to indicate that all productions within an ASN.1 module should be treated as PDU types. -per None This option instructs the compiler to generate functions that implement the Packed Encoding Rules (PER) as specified in the ASN.1 standards. -genPrint -print None This option specifies that print methods should be generated. Print -shortnames None This option is used to change the name generated by compiler for embedded types in constructed types. This option is required to handle the limit on the size of filenames in certain situations. With this option, the generated code filenames would be shorter than without this option. -stream None This option instructs the compiler to generate stream-based encoders/ decoders instead of memory buffer based. This makes it possible to encode directly to or decode directly from a source or sink such as a file or socket. In the case of BER, it will also cause forward encoders to be generated, which will use indefinite lengths for all constructed elements in a message. 5