#include <parse_context.h>
Public Types | |
enum | { kSlopBytes = 16, kMaxCordBytesToCopy = 512 } |
enum | { kSlopBytes = 16, kMaxCordBytesToCopy = 512 } |
Public Member Functions | |
const PROTOBUF_MUST_USE_RESULT char * | AppendString (const char *ptr, int size, std::string *s) |
const PROTOBUF_NODISCARD char * | AppendString (const char *ptr, int size, std::string *s) |
void | BackUp (const char *ptr) |
void | BackUp (const char *ptr) |
int | BytesUntilLimit (const char *ptr) const |
int | BytesUntilLimit (const char *ptr) const |
bool | ConsumeEndGroup (uint32 start_tag) |
bool | ConsumeEndGroup (uint32_t start_tag) |
bool | DataAvailable (const char *ptr) |
bool | DataAvailable (const char *ptr) |
bool | EndedAtEndOfStream () const |
bool | EndedAtEndOfStream () const |
bool | EndedAtLimit () const |
bool | EndedAtLimit () const |
EpsCopyInputStream (bool enable_aliasing) | |
EpsCopyInputStream (bool enable_aliasing) | |
bool | IsExceedingLimit (const char *ptr) |
bool | IsExceedingLimit (const char *ptr) |
uint32 | LastTag () const |
uint32_t | LastTag () const |
PROTOBUF_MUST_USE_RESULT bool | PopLimit (int delta) |
PROTOBUF_NODISCARD bool | PopLimit (int delta) |
PROTOBUF_MUST_USE_RESULT int | PushLimit (const char *ptr, int limit) |
PROTOBUF_NODISCARD int | PushLimit (const char *ptr, int limit) |
const PROTOBUF_NODISCARD char * | ReadArenaString (const char *ptr, ArenaStringPtr *s, Arena *arena) |
template<typename T > | |
const PROTOBUF_MUST_USE_RESULT char * | ReadPackedFixed (const char *ptr, int size, RepeatedField< T > *out) |
template<typename T > | |
const PROTOBUF_NODISCARD char * | ReadPackedFixed (const char *ptr, int size, RepeatedField< T > *out) |
template<typename T > | |
const char * | ReadPackedFixed (const char *ptr, int size, RepeatedField< T > *out) |
template<typename Add > | |
const PROTOBUF_MUST_USE_RESULT char * | ReadPackedVarint (const char *ptr, Add add) |
template<typename Add > | |
const PROTOBUF_NODISCARD char * | ReadPackedVarint (const char *ptr, Add add) |
template<typename Add > | |
const char * | ReadPackedVarint (const char *ptr, Add add) |
template<typename Tag , typename T > | |
const PROTOBUF_MUST_USE_RESULT char * | ReadRepeatedFixed (const char *ptr, Tag expected_tag, RepeatedField< T > *out) |
template<typename Tag , typename T > | |
const PROTOBUF_NODISCARD char * | ReadRepeatedFixed (const char *ptr, Tag expected_tag, RepeatedField< T > *out) |
template<typename Tag , typename T > | |
const char * | ReadRepeatedFixed (const char *ptr, Tag expected_tag, RepeatedField< T > *out) |
const PROTOBUF_MUST_USE_RESULT char * | ReadString (const char *ptr, int size, std::string *s) |
const PROTOBUF_NODISCARD char * | ReadString (const char *ptr, int size, std::string *s) |
void | SetEndOfStream () |
void | SetEndOfStream () |
void | SetLastTag (uint32 tag) |
void | SetLastTag (uint32_t tag) |
const PROTOBUF_MUST_USE_RESULT char * | Skip (const char *ptr, int size) |
const PROTOBUF_NODISCARD char * | Skip (const char *ptr, int size) |
Protected Member Functions | |
bool | DoneWithCheck (const char **ptr, int d) |
bool | DoneWithCheck (const char **ptr, int d) |
const char * | InitFrom (io::ZeroCopyInputStream *zcis) |
const char * | InitFrom (io::ZeroCopyInputStream *zcis) |
const char * | InitFrom (io::ZeroCopyInputStream *zcis, int limit) |
const char * | InitFrom (io::ZeroCopyInputStream *zcis, int limit) |
const char * | InitFrom (StringPiece flat) |
const char * | InitFrom (StringPiece flat) |
Private Types | |
enum | { kNoAliasing = 0, kOnPatch = 1, kNoDelta = 2 } |
enum | { kNoAliasing = 0, kOnPatch = 1, kNoDelta = 2 } |
enum | { kSafeStringSize = 50000000 } |
Private Member Functions | |
template<typename A > | |
const char * | AppendSize (const char *ptr, int size, const A &append) |
template<typename A > | |
const char * | AppendSize (const char *ptr, int size, const A &append) |
const PROTOBUF_MUST_USE_RESULT char * | AppendString (const char *ptr, std::string *str) |
const PROTOBUF_NODISCARD char * | AppendString (const char *ptr, std::string *str) |
const char * | AppendStringFallback (const char *ptr, int size, std::string *str) |
const char * | AppendStringFallback (const char *ptr, int size, std::string *str) |
template<typename A > | |
const char * | AppendUntilEnd (const char *ptr, const A &append) |
template<typename A > | |
const char * | AppendUntilEnd (const char *ptr, const A &append) |
std::pair< const char *, bool > | DoneFallback (const char *ptr, int d) |
std::pair< const char *, bool > | DoneFallback (int overrun, int depth) |
const char * | Next () |
const char * | Next (int overrun, int d) |
const char * | NextBuffer (int overrun, int depth) |
const char * | ReadStringFallback (const char *ptr, int size, std::string *str) |
const char * | ReadStringFallback (const char *ptr, int size, std::string *str) |
const char * | SkipFallback (const char *ptr, int size) |
const char * | SkipFallback (const char *ptr, int size) |
void | StreamBackUp (int count) |
void | StreamBackUp (int count) |
bool | StreamNext (const void **data) |
bool | StreamNext (const void **data) |
Private Attributes | |
std::uintptr_t | aliasing_ = kNoAliasing |
char | buffer_ [2 *kSlopBytes] = {} |
const char * | buffer_end_ |
uint32 | last_tag_minus_1_ = 0 |
uint32_t | last_tag_minus_1_ = 0 |
int | limit_ |
const char * | limit_end_ |
const char * | next_chunk_ |
int | overall_limit_ = INT_MAX |
int | size_ |
io::ZeroCopyInputStream * | zcis_ = nullptr |
Friends | |
class | ImplicitWeakMessage |
Definition at line 107 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
anonymous enum |
Enumerator | |
---|---|
kSlopBytes | |
kMaxCordBytesToCopy |
Definition at line 109 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Enumerator | |
---|---|
kNoAliasing | |
kOnPatch | |
kNoDelta |
Definition at line 256 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
anonymous enum |
Enumerator | |
---|---|
kSlopBytes | |
kMaxCordBytesToCopy |
Definition at line 111 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Enumerator | |
---|---|
kNoAliasing | |
kOnPatch | |
kNoDelta |
Definition at line 268 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Enumerator | |
---|---|
kSafeStringSize |
Definition at line 287 of file protobuf/src/google/protobuf/parse_context.h.
|
inlineexplicit |
Definition at line 111 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineexplicit |
Definition at line 113 of file protobuf/src/google/protobuf/parse_context.h.
|
inlineprivate |
Definition at line 290 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprivate |
Definition at line 323 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 160 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 162 of file protobuf/src/google/protobuf/parse_context.h.
|
inlineprivate |
Definition at line 324 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprivate |
Definition at line 365 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 210 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
private |
|
inlineprivate |
Definition at line 316 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprivate |
Definition at line 350 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 114 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 116 of file protobuf/src/google/protobuf/parse_context.h.
Definition at line 196 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
Definition at line 200 of file protobuf/src/google/protobuf/parse_context.h.
Definition at line 183 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
Definition at line 187 of file protobuf/src/google/protobuf/parse_context.h.
Definition at line 201 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
Definition at line 205 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 157 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
private |
Definition at line 171 of file protobuf/src/google/protobuf/parse_context.cc.
|
inlineprotected |
Definition at line 207 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprotected |
Definition at line 211 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 189 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 193 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 188 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 192 of file protobuf/src/google/protobuf/parse_context.h.
|
protected |
Definition at line 283 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
protected |
|
inlineprotected |
Definition at line 240 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprotected |
Definition at line 251 of file protobuf/src/google/protobuf/parse_context.h.
|
inlineprotected |
Definition at line 217 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprotected |
Definition at line 228 of file protobuf/src/google/protobuf/parse_context.h.
Definition at line 192 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
Definition at line 196 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 182 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 186 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 157 of file protobuf/src/google/protobuf/parse_context.cc.
Definition at line 102 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
inlineprivate |
Definition at line 102 of file protobuf/src/google/protobuf/parse_context.cc.
|
inline |
Definition at line 137 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
Definition at line 139 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 126 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 128 of file protobuf/src/google/protobuf/parse_context.h.
const char * google::protobuf.internal::EpsCopyInputStream::ReadArenaString | ( | const char * | ptr, |
ArenaStringPtr * | s, | ||
Arena * | arena | ||
) |
Definition at line 265 of file arenastring.cc.
const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadPackedFixed | ( | const char * | ptr, |
int | size, | ||
RepeatedField< T > * | out | ||
) |
const PROTOBUF_NODISCARD char* google::protobuf.internal::EpsCopyInputStream::ReadPackedFixed | ( | const char * | ptr, |
int | size, | ||
RepeatedField< T > * | out | ||
) |
const char * google::protobuf.internal::EpsCopyInputStream::ReadPackedFixed | ( | const char * | ptr, |
int | size, | ||
RepeatedField< T > * | out | ||
) |
Definition at line 248 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadPackedVarint | ( | const char * | ptr, |
Add | add | ||
) |
const PROTOBUF_NODISCARD char* google::protobuf.internal::EpsCopyInputStream::ReadPackedVarint | ( | const char * | ptr, |
Add | add | ||
) |
const char * google::protobuf.internal::EpsCopyInputStream::ReadPackedVarint | ( | const char * | ptr, |
Add | add | ||
) |
Definition at line 611 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadRepeatedFixed | ( | const char * | ptr, |
Tag | expected_tag, | ||
RepeatedField< T > * | out | ||
) |
const PROTOBUF_NODISCARD char* google::protobuf.internal::EpsCopyInputStream::ReadRepeatedFixed | ( | const char * | ptr, |
Tag | expected_tag, | ||
RepeatedField< T > * | out | ||
) |
const char * google::protobuf.internal::EpsCopyInputStream::ReadRepeatedFixed | ( | const char * | ptr, |
Tag | expected_tag, | ||
RepeatedField< T > * | out | ||
) |
Definition at line 223 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
inline |
Definition at line 152 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 154 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 199 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
private |
|
inline |
Definition at line 191 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 195 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 190 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 194 of file protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 146 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inline |
Definition at line 148 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 195 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc.
|
private |
|
inlineprivate |
Definition at line 284 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
inlineprivate |
Definition at line 317 of file protobuf/src/google/protobuf/parse_context.h.
Definition at line 279 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
Definition at line 312 of file protobuf/src/google/protobuf/parse_context.h.
|
friend |
Definition at line 329 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 257 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 255 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 250 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 271 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 283 of file protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 253 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 249 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 251 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 272 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 252 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.
|
private |
Definition at line 254 of file bloaty/third_party/protobuf/src/google/protobuf/parse_context.h.