class ArrayOutputStream
Defined at line 85 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
A ZeroCopyOutputStream backed by an in-memory array of bytes.
Public Methods
void ArrayOutputStream (void * data, int size, int block_size)
Create an OutputStream that writes to the bytes pointed to by "data".
"data" remains the property of the caller but must remain valid until
the stream is destroyed. If a block_size is given, calls to Next()
will return data blocks no larger than the given size. Otherwise, the
first call to Next() returns the entire array. block_size is mainly
useful for testing; in production you would probably never want to set
it.
void ~ArrayOutputStream ()
Defined at line 95 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
void ArrayOutputStream (const ArrayOutputStream & )
`ArrayOutputStream` is neither copiable nor assignable
Defined at line 98 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
bool Next (void ** data, int * size)
implements ZeroCopyOutputStream ---------------------------------
void BackUp (int count)
int64_t ByteCount ()
ArrayOutputStream & operator= (const ArrayOutputStream & )
Defined at line 99 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h