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

Method onDataReceived

valdi/src/valdi/runtime/Debugger/DaemonClient.cpp:241–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void DaemonClient::onDataReceived(const BytesView& bytes) {
242 // onDataReceived is called on a raw TCP connection, we need to maintain a buffer
243 {
244 std::lock_guard<Mutex> lock(_mutex);
245 _packetStream.write(bytes);
246 }
247
248 while (consumeBufferedData()) {
249 }
250}
251
252bool DaemonClient::consumeBufferedData() {
253 Result<BytesView> result;

Callers 1

doReadMethod · 0.45

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected