However, when the classes/structs have member functions, sometimes pointers to those functions appear inside the struct, which means you cannot safely read/write the structure to the disk (or the network)-- the function may no longer be at that address, or someone may have tampered with the data.