× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I think the records are still 528 bytes long with the data in the records
being compressed.  However the field at offset xCC in the descriptors refers
to the number of *uncompressed* records to the next descriptor.  So I think
you'll have to uncompress the records to find the next descriptor.

The compression is done by the MI "Convert Character to SNA" instruction
(strangely enough).  The description is available at:

  http://www.as400.ibm.com/tstudio/tech_ref/mi/CVTCS.htm

which contains a description of the compression algorithm.  It's simple run
length encoding where strings of duplicate characters are represented by a
length byte and 1 byte of the duplicate character.  Non-duplicate strings are
left as they are.

I did a SAVLIB DTACPR(*YES) (on V5R1) and it appears the first descriptor
(for the library) and the records after it are uncompressed.  Starting with
the second descriptor (record 25) the descriptors are uncompressed but the
records after them are compressed.  In each compressed 528-byte record, the
first 512 bytes are filled with compressed data, and the last 16 bytes
(4-byte RRN and 12-byte checksum) are left uncompressed.

BTW, in record 17 at offset x132 the leftmost bit indicates whether the save
file is compressed.

--Dave


On Friday 01 February 2002 07:11 am, arnaud wrote:
> C'est un message de format MIME en plusieurs parties.
> --
> [ Picked text/plain from multipart/alternative ]
> i'm creating a pc program able to read save files.
> In no compressed save files , i use an information at offset xCC in
> descriptors to find the next descriptor.(this number multiply 528 bytes)
> I've problems with compressed save files.records are not 528 bytes length.
> So How could i find the next descriptor?
>
> Thank you very much.
>
> PS : I apologize for my english.
>
> --



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.