ASN1 BER bit string encoding
Mon Nov 2 17:21:28 CET 2009
When encoding a bit string, that has a size constraint that is a
range, and the value to encode
is given using 'named bits', the encoded value always contains the
maximum number of bits.
This is a little inefficient since it forces the transmission of more
bits that necessary.
This is not a real problem, except that we have to communicate with a
node that rejects the
message if the encoded bit string contains more than the minimum number of bits.
Also it might be a good idea to change lists:sort to lists:usort in
asn1rt_ber_bin:get_all_bitposes/3 in order to not getting an error if
the same named bit
is specified more than once/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 370 bytes
Desc: not available
More information about the erlang-patches