diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2016-01-06 18:06:43 -0800 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2016-01-06 18:10:24 -0800 |
commit | 76195058e25d19fc918996d55d3ad69ee55cb77e (patch) | |
tree | 3b93b3195a1a411e11b93644429cc6c96668b128 /src/google/protobuf/io/coded_stream.h | |
parent | 363316a8d79ad3bebf47c6347a038b6130212e28 (diff) |
Patch internal change 111557819.
Defer calls to mutable_unknown_fields() until it is actually required to
save memory for C++ lite runtime.
Change-Id: Ica9c1fd276cdb164942d1e7b6e098c83ee3ffdc5
Diffstat (limited to 'src/google/protobuf/io/coded_stream.h')
-rw-r--r-- | src/google/protobuf/io/coded_stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index 2da096c5..020f20c7 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -666,6 +666,7 @@ class LIBPROTOBUF_EXPORT CodedOutputStream { public: // Create an CodedOutputStream that writes to the given ZeroCopyOutputStream. explicit CodedOutputStream(ZeroCopyOutputStream* output); + CodedOutputStream(ZeroCopyOutputStream* output, bool do_eager_refresh); // Destroy the CodedOutputStream and position the underlying // ZeroCopyOutputStream immediately after the last byte written. |