THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/08/2006 at 23:40, xxxxxxxx wrote:
Cinema 4D Version: 9.102
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
My plugin object and tags have zlib compressed struct arrays that are saved/loaded with the C4D document via Read()/Write(). Currently I'm using WriteMemory()/ReadMemory() for the array. Obviously, these are no good if one wants to port their documents from Windows to MacOS and vice versa - leads to crashing on the other system.
Thanks to Per-Anders, I see that lSwap() or lMotor(),lIntel() may allow the data to be endian-corrected despite its original storage order. But this is a byte array (Bytef is typedef'd unsigned char in zlib). How would one use these to do the corrective ordering in this case?