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

Method reset

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

Source from the content-addressed store, hash-verified

948}
949
950void TFileTransportBuffer::reset() {
951 if (bufferMode_ == WRITE || writePoint_ > readPoint_) {
952 T_DEBUG("%s", "Resetting a buffer with unread entries");
953 }
954 // Clean up the old entries
955 for (uint32_t i = 0; i < writePoint_; i++) {
956 delete buffer_[i];
957 }
958 bufferMode_ = WRITE;
959 writePoint_ = 0;
960 readPoint_ = 0;
961}
962
963bool TFileTransportBuffer::isFull() {
964 return writePoint_ == size_;

Callers 15

TSocketUtils.hFile · 0.45
ensureReadBufferMethod · 0.45
resizeTransformBufferMethod · 0.45
~TFileTransportMethod · 0.45
writerThreadMethod · 0.45
seekToChunkMethod · 0.45
setPipeHandleMethod · 0.45
setPipeHandleMethod · 0.45
setWrtPipeHandleMethod · 0.45
setPipeHandleMethod · 0.45
beginAsyncReadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected