On Tue, 31 Aug 2004, Ramaswamy R - CTD, Chennai. wrote: > I would like to get a clarification at this point of the discussion. I > am under the understanding that endianess comes into picture only when > accessing a word or dword and above. Not when accessing in bytes.
Your understanding is correct. > Most of BER specifies what the next byte (or octet as it is called) > should be, and as for PER since bits are appended they effectively form > bytes. > > I do not quite understand why the consideration of the endianess of the > encoded byte stream. I am confident that the bit ordering (within a > byte) is big-endian though. > > Kindly explain as to where is it that the endianess matters, other than > the representation of the data in memory. Yhanking you. Hmmm ..., perhaps Wang Hao's decoder is used to support legacy protocols that don't conform to the ASN.1 encoding rules, as well as newer ones that do conform. As far as support of the ASN.1 encoding rules other then ECN goes, there is never a need for the user to specify the byte order. ------------------------------------------------------------------------- Bancroft Scott Toll Free :1-888-OSS-ASN1 OSS Nokalva International:1-732-302-0750 [EMAIL PROTECTED] Tech Support :1-732-302-9669 x-1 1-732-302-9669 x-200 Fax :1-732-302-0023 http://www.oss.com > -----Original Message----- > From: WangHao [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 7:39 AM > To: [EMAIL PROTECTED] > Subject: Re: [ASN1] What is the bytes order in ASN.1 message? > > > > He asked what the standard interface was. What you are doing is not > > compatible with the standards and is therefore not relevant. > > I think you might misunderstand what I meant. I extended the standard > ASN.1 notation and designed that notation carefully and considered the > compatibility, so standard ASN.1 notations still work in its way. The > default endian is big-endian. > > I mean that perhaps endian control should be provided for users to > control the actual endian just as ECN does. There exists the > applications that require messages in one endian order be converted into > messages in another endian order or that require messages in > little-endian order instead of in standard big-endian order. > > Best regards, > > Wang Hao > _______________________________________________ > ASN1 mailing list > [EMAIL PROTECTED] > http://lists.asn1.org/mailman/listinfo/asn1 > _______________________________________________ ASN1 mailing list [EMAIL PROTECTED] http://lists.asn1.org/mailman/listinfo/asn1
