Giter Site home page Giter Site logo

Generate only BER parsing? about asn1c HOT 3 CLOSED

codehero avatar codehero commented on July 23, 2024
Generate only BER parsing?

from asn1c.

Comments (3)

vlm avatar vlm commented on July 23, 2024

The asn1c provides primitives for BER encoding. It does not support encoding data using INDEFINITE lengths out of the box. I recommend you changing some generated top-level structure of your protocol (that'd be SEQUENCE OF or SET OF, most probably) to use INDEFINITE length encoding, while retaining all of the DEFINITE length encoding machinery on the lower levels. This way, you'll probably meet your constraints while having a very limited set of changes to do in the generated code.

from asn1c.

codehero avatar codehero commented on July 23, 2024

I am sorry, I was not being very clear...let me put it this way: How do I disable PER and XER code generation?

from asn1c.

vlm avatar vlm commented on July 23, 2024

There is no way to disable them, although they add extremely little to the code base. You can manually remove xer__.c and per__.c files from the compilation and create stubs for the functions that are called out of these modules.

from asn1c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.