Hello everybody,

I have this confusion that I hope somebody can shed some light into it.
According to the BER standard (ISO/IEC 8825-1), "if a real variable has the
value zero, there shall be no contents octets in the encoding". However,
when reading the rules for encoding structures (sequences), I could see that
OPTIONAL or DEFAULT VALUE members can skip the contents octets.

Therefore, considering a structure that has a member of real type that can
have a default value of 2, if the encoding is like this:

Id field - 0x09
Length field - 0x00

What conclusion do I draw when decoding it: Is it the default value 2 that
caused the contents octets to be skipped or it is the value 0 for the real
variable that caused the length of the contents octets to be zero?

Any advice will be greatly appreciated,

Eddie Lascu


_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to