| 948 | } |
| 949 | |
| 950 | void 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 | |
| 963 | bool TFileTransportBuffer::isFull() { |
| 964 | return writePoint_ == size_; |
no outgoing calls
no test coverage detected