thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fogbit <fog...@gmail.com>
Subject read/consume question
Date Tue, 08 Oct 2013 08:03:43 GMT
Hello.

There is "read" method, we generally we it for deserialization from
transport via a protocol. What does it returns? From what i read from the
sources, it returns actual amount of bytes red from a transport. Am i right?

If i am, can i use this number for TTransport::consume method? I have to
make a sort of "manual" reading from a buffer like:

while(not_buffer_end)
{
  1) read data
  2) move buffer pointer
}

I tried this, but it raises the
TProtocolException(TProtocolException::INVALID_DATA)

Thank you!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message