Example 1: Serialization interface in Steam.

const unsigned char * GetSerialized( size_t * pReceiveSizeOfSerialized ) const;
// Deserialization constructor. This takes ownership of the passed-in malloc'd
// data (i.e. will free that memory even if an exception is thrown).
CMyKeyOrRecord( void * pMallocdSerialized, size_t uSizeOfSerialized );