MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / IsReady

Method IsReady

Src/Core/QualityOfService.cpp:88–97  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

86
87////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
88bool FSecure::C3::QualityOfService::Packet::IsReady()
89{
90 if (m_ExpectedSize == 0) // packet nr 0 was not set.
91 return false;
92
93 if (m_Size > m_ExpectedSize) // sanity check
94 throw std::runtime_error{ OBF("QoS error. Packet size is longer than expected, wrong chunks must been set.") };
95
96 return m_Size == m_ExpectedSize;
97}
98
99////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
100void FSecure::C3::QualityOfService::Packet::SetExpectedSize(uint32_t size)

Callers 1

GetNextPacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected