VMware Tanzu GemFire Native .NET Reference 10.3.0
|
When a domain class implements PdxSerializable it marks itself as a PDX. More...
#include <IPdxSerializable.hpp>
Public Member Functions | |
void | FromData (IPdxReader^ reader) |
Deserialize this object. More... | |
void | ToData (IPdxWriter^ writer) |
Serializes this object in geode PDX format. More... | |
When a domain class implements PdxSerializable it marks itself as a PDX.
The implementation of toData provides the serialization code and fromData provides the deserialization code. These methods also define each field name and field type of the PDX. Domain classes should serialize and de-serialize all its member fields in same order in toData and fromData method. A domain class which implements this interface should register delgate Serializable.RegisterPdxType to create new instance of type for de-serilization.
void Apache::Geode::Client::IPdxSerializable::FromData | ( | IPdxReader^ | reader | ) |
Deserialize this object.
reader | the IPdxReader stream to use for reading the object data |
void Apache::Geode::Client::IPdxSerializable::ToData | ( | IPdxWriter^ | writer | ) |
Serializes this object in geode PDX format.
writer | the IPdxWriter object to use for serializing the object |