logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

asntool - process ASN.1 module specifications

Author

       The National Center for Biotechnology Information.

NCBI                                               2016-09-01                                         ASNTOOL(1)

Description

asntool reads, validates, and displays ASN.1 module specifications.

Name

       asntool - process ASN.1 module specifications

Options

       A summary of options is included below.

       -      Print usage message

       -Bfilename
              Generate objects and code in files named filename.*

       -DN   Debugging level for code generation:
              0      No debugging (default)
              1      Shallow debugging
              2      Deep debugging
              3-9    Same as 2

       -FN   Fix non-printing characters:
              0      Replace with #, post ERROR (default)
              1      Replace with # silently
              2      Pass through silently
              3      Replace with #, post FATAL

       -G     Generate object loader .c and .h files

       -Istr Put "#include str" in generated .c file

       -Jtype
              Register type type with object manager

       -Kstr In generated .c, force name of #included asn header to str-Lstr Label registered type as str-Mfilename,...
              Search the ASN.1 modules in filename,... for external references

       -NN   UTF8 input conversion:
              0      Convert silently (default)
              1      Convert, post WARNING first time
              2      Convert, post WARNING each time
              3      Do not convert

       -Pstr XML module prefix for DOCTYPE-Q     Use quoted syntax form for generated include files

       -Sfilename
              Send debugging output to filename rather than stderr

       -Tfilename
              Dump ASN.1 tree to filename-UN   UTF8 output conversion:
              0      Convert silently (default)
              1      Convert, post WARNING first time
              2      Convert, post WARNING each time
              3      Do not convert

       -V     Force CHOICE objects to use custom structures rather than ValNodePtrs, for compatibility with some
              old hand-coded object loaders.

       -Xfilename
              Write XML DTD to filename.  If filename is "m", print each module to a separate file.

       -Z     Bit twiddle for optional zero value base slots

       -bN   Use N-byte buffers (default = 1024; anything between 512 and 10000 is legal)

       -dfilename
              Read binary values from filename (requires -t)

       -efilename
              Write binary values to filename-ffilename
              Write ASN.1 module to filename-lfilename
              Write ASN.1 loader to filename-mfilename
              Read ASN.1 module from filename-ofilename
              Write header to filename-pfilename
              Write print values to filename-tstr Expect binary values to have type str-vfilename
              Read print values from filename-wN   Limit values in #defines to N bits (default = 31; anything between 31 and 128 is legal)

       -xfilename
              Write XML data to filename

Synopsis

asntool  [-]  [-Bfilename]  [-DN]  [-FN]  [-G]  [-Istr] [-Jtype] [-Kstr] [-Lstr] [-Mfilename,...]
       [-NN] [-Pstr] [-Q] [-Sfilename] [-Tfilename] [-UN]  [-V]  [-Xfilename]  [-Z]  [-bN]  [-dfilename]
       [-efilename]  [-ffilename] [-lfilename] -mfilename [-ofilename] [-pfilename] [-tstr] [-vfilename]
       [-wN] [-xfilename]

See Also