BER encodings are completely unaffected by constraints. The encoding is the same as an encoding of [17] IMPLICIT INTEGER, which will take one octet for the T part, one octet for the L part, and one octet for the V part, unless the value being encoded requires more. The V part can indeed be only one byte, but the minimum encoding of the INTEGER is three bytes (or zero, as it is optional).
John L "Sim. Ja." wrote: > > Hi folk, > > I hope, you could confirm this statement. > Given an element description as below > cug-Index [17] IMPLICIT INTEGER ( 0 .. 32767 ) OPTIONAL, > > if the value to be encoded is 0x0a, which needs only one byte in BER, > I must use one byte for a minimum encoding. > > Thanks in advance > Simin > > PS: The alternative is to see the space reserved for this value as always > two bytes. > > __________________________________________________________________ > > Gesendet von Yahoo! Mail - http://mail.yahoo.de > M�chten Sie mit einem Gru� antworten? http://grusskarten.yahoo.de -- Prof John Larmouth Larmouth T&PDS Ltd (Training and Protocol Development Services) 1 Blueberry Road Bowdon [EMAIL PROTECTED] Cheshire WA14 3LS Tel: +44 161 928 1605 England Fax: +44 161 928 8069
