Cpp Style Data Serialization