Hi,

I'm curious about the following 'problem' (actually, I couldn't understand ITUs recommendation X.691 fully... o_O ):

SomeInt ::= INTEGER (0..65535)

a SomeInt ::= 10
b SomeInt ::= 32000

Now, when I encode these two variables into _byte-aligned_ PER: has there to be a length part everytime? i.e.:

  -- a:
    00000001 00001010
  -- b:
    00000010 01111101 00000000

Or will it encoded as 2-byte number? i.e.:

  -- a:
    00000000 00001010
  -- b:
    01111101 00000000

Although I'd rather like to use the last one, I think it has to be encoded like the first example, with lengths... or is it possible to force a 2-byte value explicitely? Maybe with the SIZE(2)-constraint, so that you can omit the length? As I tried something like this the last time, my compiler bailed out with a syntax error, and I think he's (unfortunately ;) ) right...

Thanks in advance,
  Bjoern Schneider




_______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to