---------------------------------------------------------------------
| 80 | |
| 81 | //--------------------------------------------------------------------- |
| 82 | void WriteMessage( |
| 83 | const google::protobuf::MessageLite& message, |
| 84 | google::protobuf::io::CodedOutputStream& output) |
| 85 | { |
| 86 | output.WriteVarint64(message.ByteSizeLong()); |
| 87 | if (!message.SerializeToCodedStream(&output)) |
| 88 | THROW(L"Cannot serialize message to stream"); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | //------------------------------------------------------------------------- |