Loading libs/protoutil/include/android/util/ProtoOutputStream.h +6 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,12 @@ public: long long start(uint64_t fieldId); void end(long long token); /** * Returns how many bytes are buffered in ProtoOutputStream. * Notice, this is not the actual(compact) size of the output data. */ size_t bytesWritten(); /** * Flushes the protobuf data out to given fd. When the following functions are called, * it is not able to write to ProtoOutputStream any more since the data is compact. Loading libs/protoutil/src/ProtoOutputStream.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -295,6 +295,12 @@ ProtoOutputStream::end(long long token) } } size_t ProtoOutputStream::bytesWritten() { return mBuffer.size(); } bool ProtoOutputStream::compact() { if (mCompact) return true; Loading Loading
libs/protoutil/include/android/util/ProtoOutputStream.h +6 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,12 @@ public: long long start(uint64_t fieldId); void end(long long token); /** * Returns how many bytes are buffered in ProtoOutputStream. * Notice, this is not the actual(compact) size of the output data. */ size_t bytesWritten(); /** * Flushes the protobuf data out to given fd. When the following functions are called, * it is not able to write to ProtoOutputStream any more since the data is compact. Loading
libs/protoutil/src/ProtoOutputStream.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -295,6 +295,12 @@ ProtoOutputStream::end(long long token) } } size_t ProtoOutputStream::bytesWritten() { return mBuffer.size(); } bool ProtoOutputStream::compact() { if (mCompact) return true; Loading