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

Method getNext

lib/cpp/src/thrift/transport/TFileTransport.cpp:938–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938eventInfo* TFileTransportBuffer::getNext() {
939 if (bufferMode_ == WRITE) {
940 bufferMode_ = READ;
941 }
942 if (readPoint_ < writePoint_) {
943 return buffer_[readPoint_++];
944 } else {
945 // no more entries
946 return nullptr;
947 }
948}
949
950void TFileTransportBuffer::reset() {
951 if (bufferMode_ == WRITE || writePoint_ > readPoint_) {

Callers 1

writerThreadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected