class CopyingOutputStream

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

A generic traditional output stream interface.

Lots of traditional output streams (e.g. file descriptors, C stdio

streams, and C++ iostreams) expose an interface where every write

involves copying bytes from a buffer. If you want to take such an

interface and make a ZeroCopyOutputStream based on it, simply implement

CopyingOutputStream and then use CopyingOutputStreamAdaptor.

CopyingOutputStream implementations should avoid buffering if possible.

CopyingOutputStreamAdaptor does its own buffering and will write data

in large blocks.

Public Methods

bool Write (const void * buffer, int size)

Writes "size" bytes from the given buffer to the output. Returns true

if successful, false on a write error.

void ~CopyingOutputStream ()

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