avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teryl Taylor <teryl.tay...@gmail.com>
Subject Size of an encoded object in C++
Date Thu, 30 Jun 2011 21:22:31 GMT
Hi everyone,

I'm using the InputStream class along with the BinaryDecoder and
avro::decode method to read in objects from a file stream.  Seems to work
okay.   However, I need to get the size of the encoded object that I have
just read from the file (or even better, the byte offset of the pointer
within the file).  Is there an easy way to do this?  I tried the byteCount()
method in the InputStream class but that doesn't seem to store the offset
within the stream.

Best Regards,


View raw message