示例#1
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);
 }
 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();
     }
 }
示例#3
0
 void readData(hazelcast::client::serialization::ObjectDataInput &in) {
     name = in.readUTF();
     male = in.readBoolean();
     age = in.readInt();
 }
示例#4
0
 void readData(hazelcast::client::serialization::ObjectDataInput &in) {
     name = in.readUTF();
 }
 void readData(hazelcast::client::serialization::ObjectDataInput &in) {
     amount = in.readInt();
 }