ASNTOOL(1)

πŸ’– ASNTOOL(1) β€” the NCBI Tools User's Manual glow-up πŸ’–

okay bestie, sit down, hydrate, and let me tell you about asntool β€” it's from the NCBI Tools User's Manual and it's literally the moment your ASN.1 module specs get read, validated, and shown off. main character energy fr fr πŸ¦‹


✨ NAME ✨

asntool β€” process ASN.1 module specifications πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

asntool [-] [-B filename] [-D N] [-F N] [-G] [-I str] [-J type] [-K str]
[-L str] [-M filename,...] [-N N] [-P str] [-Q] [-S filename]
[-T filename] [-U N] [-V] [-X filename] [-Z] [-b N] [-d filename]
[-e filename] [-f filename] [-l filename] -m filename [-o filename]
[-p filename] [-t str] [-v filename] [-w N] [-x filename]
heads up: -m filename is not in brackets, bestie. it's required. the rest are optional. periodt.

🌸 DESCRIPTION 🌸

asntool reads, validates, and displays ASN.1 module specifications. that's it, that's the whole vibe check β€” it takes your ASN.1 modules, checks they're not a mess, and shows you what's up. πŸ‘‘


🌈 OPTIONS 🌈

here's the summary of options, and yes, we're going through every single one. no skipping, no summarizing, we don't do that here. πŸ’–

  • - β€” print the usage message. just a lil dash, doing a whole lot. 🫢
  • -B filename β€” generate objects and code into files named filename.* ✨
  • -D N β€” debugging level for code generation, pick your chaos:
    • 0 β€” no debugging (this is the default, the calm option)
    • 1 β€” shallow debugging
    • 2 β€” deep debugging
    • 3-9 β€” same as 2, so like, whatever, same energy πŸ’€
  • -F N β€” fix non-printing characters, choose your fighter:
    • 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 πŸ”₯
  • -I str β€” put "#include str" in the generated .c file
  • -J type β€” register type type with the object manager πŸ‘‘
  • -K str β€” in the generated .c, force the name of the #included asn header to str
  • -L str β€” label the registered type as str 🏷️
  • -M filename,... β€” search the ASN.1 modules in filename,... for external references
  • -N N β€” UTF8 input conversion, the whole menu:
    • 0 β€” convert silently (default)
    • 1 β€” convert, post WARNING the first time
    • 2 β€” convert, post WARNING each time
    • 3 β€” do not convert πŸ™ˆ
  • -P str β€” XML module prefix for DOCTYPE
  • -Q β€” use the quoted syntax form for generated include files πŸ’…
  • -S filename β€” send debugging output to filename instead of stderr
  • -T filename β€” dump the ASN.1 tree to filename 🌳
  • -U N β€” UTF8 output conversion, same lil menu as input:
    • 0 β€” convert silently (default)
    • 1 β€” convert, post WARNING the 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. it's giving legacy support, we respect it 🫑
  • -X filename β€” write the XML DTD to filename. if filename is "m", print each module to a separate file. cute, organized, obsessed. ✨
  • -Z β€” bit twiddle for optional zero value base slots
  • -b N β€” use N-byte buffers (default = 1024; anything between 512 and 10000 is legal) πŸ“
  • -d filename β€” read binary values from filename (requires -t, bestie, don't forget it)
  • -e filename β€” write binary values to filename
  • -f filename β€” write the ASN.1 module to filename
  • -l filename β€” write the ASN.1 loader to filename
  • -m filename β€” read the ASN.1 module from filename. the required one. the star of the show. 🌟
  • -o filename β€” write the header to filename
  • -p filename β€” write print values to filename
  • -t str β€” expect binary values to have type str
  • -v filename β€” read print values from filename
  • -w N β€” limit values in #defines to N bits (default = 31; anything between 31 and 128 is legal) πŸ“
  • -x filename β€” write XML data to filename

πŸ‘‘ AUTHOR πŸ‘‘

The National Center for Biotechnology Information. icons, honestly. 🫢


okay that's the whole page, bestie β€” courtesy of NCBI, dated 2016-09-01, and yeah it's still serving. go read, validate, and display those ASN.1 modules. slay. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from