File tree 1 file changed +4
-1
lines changed
Filter options
1 file changed +4
-1
lines changed
Original file line number Diff line number Diff line change @@ -335,13 +335,14 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
335
335
return res;
336
336
}
337
337
338
- private :
338
+ protected :
339
339
enum { kSlopBytes = 16 , kPatchBufferSize = 32 };
340
340
static_assert (kPatchBufferSize >= kSlopBytes * 2 ,
341
341
" Patch buffer needs to be at least large enough to hold all "
342
342
" the slop bytes from the previous buffer, plus the first "
343
343
" kSlopBytes from the next buffer." );
344
344
345
+ private:
345
346
const char * limit_end_; // buffer_end_ + min(limit_, 0)
346
347
const char * buffer_end_;
347
348
const char * next_chunk_;
@@ -370,6 +371,7 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
370
371
// systems. TODO do we need to set this as build flag?
371
372
enum { kSafeStringSize = 50000000 };
372
373
374
+ protected:
373
375
int BytesAvailable (const char * ptr) const {
374
376
ABSL_DCHECK_NE (ptr, nullptr );
375
377
ptrdiff_t available = buffer_end_ + kSlopBytes - ptr;
@@ -378,6 +380,7 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
378
380
return static_cast <int >(available);
379
381
}
380
382
383
+ private:
381
384
// Returns true if it has enough available data given requested. Note that
382
385
// "available" can be negative but "requested" must not. Casting is done to
383
386
// preserve sign bit for the latter only.
You can’t perform that action at this time.
0 commit comments