Skip to content

Commit

Permalink
THRIFT-5492: Add readEnd to TBufferedTransport
Browse files Browse the repository at this point in the history
client: cpp
Patch: Steve Licking
  • Loading branch information
slicking authored and Jens-G committed Jul 9, 2024
1 parent 259107e commit 86b05bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cpp/src/thrift/transport/TBufferTransports.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ class TBufferedTransport : public TVirtualTransport<TBufferedTransport, TBufferB
*/
uint32_t readAll(uint8_t* buf, uint32_t len) { return TBufferBase::readAll(buf, len); }

uint32_t readEnd() override {
resetConsumedMessageSize();
return 0;
}

protected:
void initPointers() {
setReadBuffer(rBuf_.get(), 0);
Expand Down

0 comments on commit 86b05bf

Please sign in to comment.