ASN1 BER bit string encoding

Anders Nygren anders.nygren@REDACTED
Wed Nov 18 16:31:24 CET 2009


On Mon, Nov 2, 2009 at 10:21 AM, Anders Nygren <anders.nygren@REDACTED> wrote:
> Hi
> 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/
>
> /Anders
>

Hi
I just want to check if there are any comments on this.

/Anders


More information about the erlang-patches mailing list