class StringOutputStream

Defined at line 119 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h

A ZeroCopyOutputStream which appends bytes to a string.

Public Methods

void StringOutputStream (std::string * target)

Create a StringOutputStream which appends bytes to the given string.

The string remains property of the caller, but it is mutated in arbitrary

ways and MUST NOT be accessed in any way until you're done with the

stream. Either be sure there's no further usage, or (safest) destroy the

stream before using the contents.

Hint: If you call target->reserve(n) before creating the stream,

the first call to Next() will return at least n bytes of buffer

space.

bool Next (void ** data, int * size)

implements ZeroCopyOutputStream ---------------------------------

void BackUp (int count)
int64_t ByteCount ()
void ~StringOutputStream ()

Defined at line 131 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h

void StringOutputStream (const StringOutputStream & )

`StringOutputStream` is neither copiable nor assignable

Defined at line 134 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h

StringOutputStream & operator= (const StringOutputStream & )

Defined at line 135 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h