void InputSocketStream::readValue(serialization::pimpl::Data &data) {
     size_t size = (size_t)readInt();
     if (size > 0) {
         std::vector<byte> &buffer =  data.toByteArray();
         buffer.resize(size);
         readFully(buffer);
     }
     
 }
 void ClientMessage::set(const serialization::pimpl::Data &value) {
     setArray<byte>(value.toByteArray());
 }