class ArrayInputStream
Defined at line 49 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
A ZeroCopyInputStream backed by an in-memory array of bytes.
Public Methods
void ArrayInputStream (const void * data, int size, int block_size)
Create an InputStream that returns 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 ~ArrayInputStream ()
Defined at line 59 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
void ArrayInputStream (const ArrayInputStream & )
`ArrayInputStream` is neither copiable nor assignable
Defined at line 62 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h
bool Next (const void ** data, int * size)
implements ZeroCopyInputStream ----------------------------------
void BackUp (int count)
bool Skip (int count)
int64_t ByteCount ()
ArrayInputStream & operator= (const ArrayInputStream & )
Defined at line 63 of file ../../third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h