void readData(hazelcast::client::serialization::ObjectDataInput &in) { int size = in.readInt(); if (size > 0) { for (int i = 0; i < size; ++i) { std::auto_ptr<std::string> key = in.readUTF(); std::auto_ptr<std::string> value = in.readUTF(); attributes[*key] = *value; } } else { attributes.clear(); } }
void read(hazelcast::client::serialization::ObjectDataInput & in, Person& object) { int i = in.readInt(); assert(i == 666); object.setName(*(in.readUTF())); i = in.readInt(); assert(i == 666); }
void readData(hazelcast::client::serialization::ObjectDataInput &in) { name = in.readUTF(); }
void readData(hazelcast::client::serialization::ObjectDataInput &in) { name = in.readUTF(); male = in.readBoolean(); age = in.readInt(); }