| 353 | |
| 354 | template<typename T> |
| 355 | static void writeRepeatedField(int fieldKey, |
| 356 | google::protobuf::io::CodedOutputStream* outputStream, |
| 357 | const google::protobuf::RepeatedField<T>& values, |
| 358 | void (*doWrite)(google::protobuf::io::CodedOutputStream*, T)) { |
| 359 | auto packed = packRepeatedField(values, doWrite); |
| 360 | WireFormat::WriteBytes(fieldKey, packed, outputStream); |
| 361 | } |
| 362 | |
| 363 | static void writeInt32(google::protobuf::io::CodedOutputStream* outputStream, int32_t value) { |
| 364 | outputStream->WriteVarint32(static_cast<uint32_t>(value)); |
no test coverage detected