VMware VMware GemFire Native .NET Reference 10.4.3
Loading...
Searching...
No Matches
Apache::Geode::Client::IPdxSerializable Interface Reference

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.
 
void ToData (IPdxWriter^ writer)
 Serializes this object in geode PDX format.
 

Detailed Description

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.

Member Function Documentation

◆ FromData()

void Apache::Geode::Client::IPdxSerializable::FromData ( IPdxReader reader)

Deserialize this object.

Parameters
readerthe IPdxReader stream to use for reading the object data

◆ ToData()

void Apache::Geode::Client::IPdxSerializable::ToData ( IPdxWriter writer)

Serializes this object in geode PDX format.

Parameters
writerthe IPdxWriter object to use for serializing the object

Apache Geode C++ Cache .NET API Documentation