class CopyingInputStreamAdaptor

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

A ZeroCopyInputStream which reads from a CopyingInputStream. This is

useful for implementing ZeroCopyInputStreams that read from traditional

streams. Note that this class is not really zero-copy.

If you want to read from file descriptors or C++ istreams, this is

already implemented for you: use FileInputStream or IstreamInputStream

respectively.

Public Methods

void CopyingInputStreamAdaptor (CopyingInputStream * copying_stream, int block_size)

Creates a stream that reads from the given CopyingInputStream.

If a block_size is given, it specifies the number of bytes that

should be read and returned with each call to Next(). Otherwise,

a reasonable default is used. The caller retains ownership of

copying_stream unless SetOwnsCopyingStream(true) is called.

void CopyingInputStreamAdaptor (const CopyingInputStreamAdaptor & )

`CopyingInputStreamAdaptor` is neither copiable nor assignable

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

CopyingInputStreamAdaptor & operator= (const CopyingInputStreamAdaptor & )

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

void SetOwnsCopyingStream (bool value)

Call SetOwnsCopyingStream(true) to tell the CopyingInputStreamAdaptor to

delete the underlying CopyingInputStream when it is destroyed.

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

void ~CopyingInputStreamAdaptor ()
bool Next (const void ** data, int * size)

implements ZeroCopyInputStream ----------------------------------

void BackUp (int count)
bool Skip (int count)
int64_t ByteCount ()