Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-01-24 | Fix open types | Björn Gustavsson | |
2014-01-24 | Fix BIT STRING | Björn Gustavsson | |
2013-10-01 | Fix broken handling of default values for BIT STRINGs | Björn Gustavsson | |
For DER/PER/UPER, a value equal to the DEFAULT is not supposed to be encoded. BIT STRINGs values can be represented as Erlang terms in four different ways: as an integer, as a list of zeroes and ones, as a {Unused,Binary} tuple, or as an Erlang bitstring. When encoding a BIT STRING, only certain representations of BIT STRINGs values were recognized. All representations must be recognized. When decoding a DEFAULT value for a BIT STRING, the actual value given in the decoding would be either an integer or a list of zeroes and one (depending on how the literal was written in the specification). We expect that the default value should be in the same representation as any other BIT STRING value (i.e. by default an Erlang bitstring, or a list if the 'legacy_bitstring' option has been given, or as compact bitstring if 'compact_bitstring' has been given). | |||
2013-08-30 | PER, UPER: Optimize encoding using an intermediate format | Björn Gustavsson | |
There are some minor incompatibilities for BIT STRING: {bit,Position} is now only only supported for a named BIT STRING type. Values longer than the maximum size for the BIT STRING type would be truncated silently - they now cause an exception. | |||
2013-01-25 | Update copyright years | Björn-Egil Dahlberg | |
2013-01-23 | per,uper: Optimize decoding of the remaining data types | Björn Gustavsson | |
2013-01-23 | per,uper: Optimize decoding of the string data types | Björn Gustavsson | |
2013-01-22 | Refactor decoding of BIT STRINGs | Björn Gustavsson | |
Refactor decoding of BIT STRINGs so that the run-time code does not spend testing conditions that are known already at compile-time (which wastes time and produces unnecessary Dialyzer warnings). There are three ways to decode BIT STRINGs: 1) To a list of bit names (and {bit,Position} for unnamed positions) if the BIT STRING type has any bit names. 2a) To a list of ones and zeros if there are no named bits, and the compact_bit_string option was NOT given. 2b) To a {Unused,Bin} tuple if there are no named bits compact_bit_string option WAS given. Structure the decoding functions in the same way. | |||
2013-01-22 | Add a mechanism for embedding run-time functions into the generated code | Björn Gustavsson | |