MCPcopy Create free account
hub / github.com/apache/thrift / wroteBytes

Method wroteBytes

lib/cpp/src/thrift/transport/TBufferTransports.cpp:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void TMemoryBuffer::wroteBytes(uint32_t len) {
405 uint32_t avail = available_write();
406 if (len > avail) {
407 throw TTransportException("Client wrote more bytes than size of buffer.");
408 }
409 wBase_ += len;
410}
411
412const uint8_t* TMemoryBuffer::borrowSlow(uint8_t* buf, uint32_t* len) {
413 (void)buf;

Callers 2

readFrameMethod · 0.80
transitionMethod · 0.80

Calls 1

TTransportExceptionClass · 0.70

Tested by

no test coverage detected