Chamira Perera wrote:
Lev:
Thanks for your reply, just to make sure I understood your example so
theoretically when encoding the open type with the length determinant
the ending position of the encoding may or may not end up at an octet
boundary although padding bits are inserted to make the content of the
open type have a multiple of eight bits. Is this correct?
This is correct.
Thanks for your time,
Chamira
-----Original Message-----
From: Lev Walkin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 4:37 PM
To: Chamira Perera
Cc: [email protected]
Subject: Re: [ASN1] Question about PER
Chamira Perera wrote:
Hi:
In UNALIGNED PER, when encoding an open type, say as part as an
extension addition to a sequence type, should the encoding of the
length
determinant start at an octet boundary? Or should it start at any
location?
The length determinant should start without regard to octet alignment.
The only thing which is octet aligned in case od UNALIGNED PER is the
number of bits in the field list of the type to be encoded.
For example, if we normally encode some type in 3 bits, then, in
case of an open type encoding, we shall construct a sequence
of
a. The encoding of the length determinant for "n", where n=1
b. 3 bits of meaningful content
c. 5 bits of padding
Without any octet alignment.
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1