MCPcopy Create free account
hub / github.com/Snapchat/Valdi / writeRepeatedField

Function writeRepeatedField

valdi_protobuf/test/Field_tests.cpp:355–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353
354template<typename T>
355static 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
363static void writeInt32(google::protobuf::io::CodedOutputStream* outputStream, int32_t value) {
364 outputStream->WriteVarint32(static_cast<uint32_t>(value));

Callers 1

TEST_FFunction · 0.85

Calls 1

packRepeatedFieldFunction · 0.85

Tested by

no test coverage detected