Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 694013c

Browse filesBrowse files
Internal change
PiperOrigin-RevId: 757887074
1 parent 639f1c9 commit 694013c
Copy full SHA for 694013c

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎src/google/protobuf/parse_context.h

Copy file name to clipboardExpand all lines: src/google/protobuf/parse_context.h
+4-1
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,14 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
335335
return res;
336336
}
337337

338-
private:
338+
protected:
339339
enum { kSlopBytes = 16, kPatchBufferSize = 32 };
340340
static_assert(kPatchBufferSize >= kSlopBytes * 2,
341341
"Patch buffer needs to be at least large enough to hold all "
342342
"the slop bytes from the previous buffer, plus the first "
343343
"kSlopBytes from the next buffer.");
344344

345+
private:
345346
const char* limit_end_; // buffer_end_ + min(limit_, 0)
346347
const char* buffer_end_;
347348
const char* next_chunk_;
@@ -370,6 +371,7 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
370371
// systems. TODO do we need to set this as build flag?
371372
enum { kSafeStringSize = 50000000 };
372373

374+
protected:
373375
int BytesAvailable(const char* ptr) const {
374376
ABSL_DCHECK_NE(ptr, nullptr);
375377
ptrdiff_t available = buffer_end_ + kSlopBytes - ptr;
@@ -378,6 +380,7 @@ class PROTOBUF_EXPORT EpsCopyInputStream {
378380
return static_cast<int>(available);
379381
}
380382

383+
private:
381384
// Returns true if it has enough available data given requested. Note that
382385
// "available" can be negative but "requested" must not. Casting is done to
383386
// preserve sign bit for the latter only.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.