• Advertisement

Archived

This topic is now archived and is closed to further replies.

fwrite/fread and classes

This topic is 5671 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is actually written to a file when you use fwrite to store a class in a file? For example, is the vtbl pointer stored in there as well? Function addresses? or are only data members stored? Sorry the wording for the question is a bit awkward - and I''m certain it''s an easy enough question Thanks

Share this post


Link to post
Share on other sites
Advertisement
Hmm okays thanks ...

I did a quick check with a float an integer and a character in a class with nothing but a constructor, and the only thing that was somewhat strange was the fact that the character was padded with three 0xCC bytes ... *shrugs* anyways, thanks

Tom

Share this post


Link to post
Share on other sites

  • Advertisement