Home > Back-end >  In a class C serialization have basic types of pointer, half the battle
In a class C serialization have basic types of pointer, half the battle

Time:09-26

I customize a class, one of the array and a few plastic variables, I define the Serialization function, and then in the main program, the Serialization is normal for a class, if the class of two-dimensional array Serialization, it is written to the file only plastic variables of a class,

CodePudding user response:

So I guess you are taking class object directly address plus sizeof (class object) serializing
Similar
Write (buff, & amp; Struct, sizeof (struct))

CodePudding user response:

The elder brothers what format is it?
  • Related