Discrepancies in reading strings (ASNOcts)
"Farooq Mulla" <[email protected]> 26 Nov 2002 08:38:00 -0000
| Newsgroups | gmane.comp.gnu.snacc |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart mime message --Next_1038299880---0-202.54.124.179-20762 Content-type: text/plain; format=flowed Content-Disposition: inline --Next_1038299880---0-202.54.124.179-20762 Content-type: message/rfc822 MIME-Version: 1.0 Message-ID: <[email protected]> From: "Farooq Mulla" <[email protected]> To: [email protected] Subject: Discrepancies in reading strings (ASNOcts) Content-type: text/plain; format=flowed Content-Disposition: inline Hi , I am relatively new to SNACC (& ASN.1 in general) ...so plzz bear with me. In my application i decode & read a ASN encoded file ...which contains a list of records ....this record contains a field (say employeeNo)having fixed length = 16 of type ASNOcts. my problem is this : in more then half the records employeeNo is read correctly i.e the full length of 16 is read ...i have confirmed this with the octetLen being 16 wheras in other records ,employeeNo reads only a part of the string i.e the length comes out around 8 or 10 (i.e the octetLen is 8/10) & hence the string comes out as incorrect. I have made an appln using the ASN1C compiler generated C encoders & decoders ...where on reading the same file I get proper desired results which means that the input file is not wrong. but i need to make this thing work with SNACC ...can ne1 give me a lead as to why this problem occurs or where i m going wrong .... ne help on the same will be appreciated..... thanx in advance & plzz bear with my questions Farooq --Next_1038299880---0-202.54.124.179-20762--