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();
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 void readData(hazelcast::client::serialization::ObjectDataInput &in) {
     name = in.readUTF();
 }
Ejemplo n.º 4
0
 void readData(hazelcast::client::serialization::ObjectDataInput &in) {
     name = in.readUTF();
     male = in.readBoolean();
     age = in.readInt();
 }