MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / strm_write

Function strm_write

tdport/td/net/SslStream.cpp:370–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 return res;
369}
370int strm_write(BIO *b, const char *buf, int len) {
371 auto *stream = static_cast<SslStreamImpl *>(BIO_get_data(b));
372 CHECK(stream != nullptr);
373 BIO_clear_retry_flags(b);
374 CHECK(buf != nullptr);
375 return narrow_cast<int>(stream->flow_write(Slice(buf, len)));
376}
377} // namespace
378
379} // namespace detail

Callers

nothing calls this directly

Calls 2

BIO_get_dataFunction · 0.85
flow_writeMethod · 0.45

Tested by

no test coverage detected