- std::stringstream stream;
- actor->simcall_.observer_->serialize(answer.simcall, stream);
- xbt_assert(stream.str().size() < sizeof(answer.buffer),
- "The serialized simcall is too large for the buffer. Please fix the code.");
- strncpy(answer.buffer, stream.str().c_str(), SIMCALL_SERIALIZATION_BUFFER_SIZE);