Archived

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

krumms

fwrite/fread and classes

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
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