class CopyingOutputStreamAdaptor
Defined at line 277 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
A ZeroCopyOutputStream which writes to a CopyingOutputStream. This is
useful for implementing ZeroCopyOutputStreams that write to traditional
streams. Note that this class is not really zero-copy.
If you want to write to file descriptors or C++ ostreams, this is
already implemented for you: use FileOutputStream or OstreamOutputStream
respectively.
Public Methods
void CopyingOutputStreamAdaptor (CopyingOutputStream * copying_stream, int block_size)
Creates a stream that writes to the given Unix file descriptor.
If a block_size is given, it specifies the size of the buffers
that should be returned by Next(). Otherwise, a reasonable default
is used.
void CopyingOutputStreamAdaptor (const CopyingOutputStreamAdaptor & )
`CopyingOutputStreamAdaptor` is neither copiable nor assignable
Defined at line 288 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
CopyingOutputStreamAdaptor & operator= (const CopyingOutputStreamAdaptor & )
Defined at line 289 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
void ~CopyingOutputStreamAdaptor ()
bool Flush ()
Writes all pending data to the underlying stream. Returns false if a
write error occurred on the underlying stream. (The underlying
stream itself is not necessarily flushed.)
bool Next (void ** data, int * size)
implements ZeroCopyOutputStream ---------------------------------
void BackUp (int count)
int64_t ByteCount ()
void SetOwnsCopyingStream (bool value)
Call SetOwnsCopyingStream(true) to tell the CopyingOutputStreamAdaptor to
delete the underlying CopyingOutputStream when it is destroyed.
Defined at line 298 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
bool AllowsAliasing ()
Defined at line 305 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
bool WriteAliasedRaw (const void * data, int size)
bool WriteCord (const absl::Cord & cord)