Home » U++ Library support » U++ Core » (Possible) Serialization issue
Re: (Possible) Serialization issue [message #18994 is a reply to message #18993] |
Mon, 03 November 2008 15:09   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
StoreToFile uses CheckedSerialize, which writes extra data to the file for error-detection. Unfortunately this function doesn't have a public header, so you have three options:
1- Don't use StoreToFile (easiest)
2- Reproduce CheckedSerialize:
void CheckedSerialize(const Callback1<Stream&> serialize, Stream& stream)
{
int pos = (int)stream.GetPos();
stream.Magic(0x61746164);
serialize(stream);
stream.Magic(0x00646e65);
pos = int(stream.GetPos() - pos);
stream.Magic(pos);
}
3- Persuade Mirek that it should be public
[Updated on: Mon, 03 November 2008 15:09] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jun 16 15:22:43 CEST 2025
Total time taken to generate the page: 0.03617 seconds
|