44 #ifndef GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_LITE_H__
45 #define GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_LITE_H__
74 bool Next(
const void** data,
int* size);
75 void BackUp(
int count);
77 int64 ByteCount()
const;
108 bool Next(
void** data,
int* size);
109 void BackUp(
int count);
110 int64 ByteCount()
const;
140 bool Next(
void** data,
int* size);
141 void BackUp(
int count);
142 int64 ByteCount()
const;
145 static const int kMinimumSize = 16;
177 virtual int Read(
void* buffer,
int size) = 0;
185 virtual int Skip(
int count);
203 int block_size = -1);
211 bool Next(
const void** data,
int* size);
212 void BackUp(
int count);
213 bool Skip(
int count);
214 int64 ByteCount()
const;
218 void AllocateBufferIfNeeded();
269 virtual bool Write(
const void* buffer,
int size) = 0;
286 int block_size = -1);
299 bool Next(
void** data,
int* size);
300 void BackUp(
int count);
301 int64 ByteCount()
const;
307 void AllocateBufferIfNeeded();
354 #endif // GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_LITE_H__
CopyingOutputStream * copying_stream_
Definition: zero_copy_stream_impl_lite.h:312
Definition: zero_copy_stream_impl_lite.h:127
scoped_array< uint8 > buffer_
Definition: zero_copy_stream_impl_lite.h:324
int last_returned_size_
Definition: zero_copy_stream_impl_lite.h:118
uint8_t uint8
Definition: common.h:175
int buffer_used_
Definition: zero_copy_stream_impl_lite.h:330
bool failed_
Definition: zero_copy_stream_impl_lite.h:316
uint8 *const data_
Definition: zero_copy_stream_impl_lite.h:113
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
string * target_
Definition: zero_copy_stream_impl_lite.h:147
void SetOwnsCopyingStream(bool value)
Definition: zero_copy_stream_impl_lite.h:296
int64 position_
Definition: zero_copy_stream_impl_lite.h:320
const int block_size_
Definition: zero_copy_stream_impl_lite.h:115
Definition: zero_copy_stream_impl_lite.h:263
char * string_as_array(string *str)
Definition: stl_util.h:83
Definition: zero_copy_stream_impl_lite.h:95
int position_
Definition: zero_copy_stream_impl_lite.h:117
const int size_
Definition: zero_copy_stream_impl_lite.h:114
Definition: zero_copy_stream.h:181
bool owns_copying_stream_
Definition: zero_copy_stream_impl_lite.h:313
#define LIBPROTOBUF_EXPORT
Definition: common.h:105
char * mutable_string_data(string *s)
Definition: zero_copy_stream_impl_lite.h:340
const int buffer_size_
Definition: zero_copy_stream_impl_lite.h:325
Definition: zero_copy_stream_impl_lite.h:279
int64_t int64
Definition: common.h:173
Definition: BnetFileGenerator.h:47
const FieldDescriptor value
Definition: descriptor.h:1522