MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / ReadMessage

Function ReadMessage

Exporter/Binary/CoverageDataDeserializer.cpp:42–56  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

40 {
41 //---------------------------------------------------------------------
42 void ReadMessage(
43 google::protobuf::io::CodedInputStream& input,
44 google::protobuf::MessageLite& message)
45 {
46 unsigned int size = 0;
47
48 if (!input.ReadVarint32(&size))
49 THROW(L"Cannot read message size.");
50 auto limit = input.PushLimit(size);
51
52 if (!message.ParseFromCodedStream(&input))
53 THROW(L"Cannot parse message.");
54
55 input.PopLimit(limit);
56 }
57
58 //---------------------------------------------------------------------
59 void InitCoverageDataFrom(

Callers 2

InitCoverageDataFromFunction · 0.85
DeserializeFromStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected