eerimoq / asn1tools

ASN.1 parsing, encoding and decoding.
MIT License
296 stars 100 forks source link

Using asn1tools to generate classes in Python/other languages #188

Open Dave-Krch opened 1 month ago

Dave-Krch commented 1 month ago

I need to create C# classes from asn1 specification. Has anyone tried to use asn1tools to create static classes in Python or other languages? Also is it possible to rewrite C source generator, without the limitations? If yes, i should be able to make it work for C#.

Futsch1 commented 1 month ago

You could use the C generated source as a DLL in C#. Generating Python code might not be necessary: for Python, you would use asn1tools directl .

Removing the limitations is possible, but only at the expense of using dynamic memory. The current code doesn't require dynamic memory, which is an advantage especially for embedded systems.