class ParseContext
Defined at line 676 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
See parse_context.h for explanation
Public Members
static Spawn kSpawn
Public Methods
template <typename... T>
void ParseContext (intdepth,boolaliasing,const char **start,T &&...args)
Defined at line 684 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename... T>
void ParseContext (Spawn,const ParseContext &ctx,const char **start,T &&...args)
Creates a new context from a given "ctx" to inherit a few attributes to
emulate continued parsing. For example, recursion depth or descriptor pools
must be passed down to a new "spawned" context to maintain the same parse
context. Note that the spawned context always disables aliasing (different
input).
Defined at line 698 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
void ParseContext (ParseContext && )
Move constructor and assignment operator are not supported because "ptr"
for parsing may have pointed to an inlined buffer (patch_buffer_) which can
be invalid afterwards.
Defined at line 709 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
const char * ParseMessage (MessageLite * msg, const char * ptr)
ParseContext & operator= (ParseContext && )
Defined at line 710 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
ParseContext & operator= (const ParseContext & )
Defined at line 711 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
void TrackCorrectEnding ()
Defined at line 713 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
bool Done (const char ** ptr)
Done should only be called when the parsing pointer is pointing to the
beginning of field data - that is, at a tag. Or if it is NULL.
Defined at line 717 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename SinkT>
const char * VerifyUTF8MaybeFlush (const char *ptr,int64_tsize,SinkT &sink)
Defined at line 723 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename SinkT>
const char * VerifyUTF8MaybeFlushFallback (const char *ptr,int64_tsize,SinkT &sink)
int depth ()
Defined at line 736 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
Data & data ()
Defined at line 738 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
const Data & data ()
Defined at line 739 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename Parser = TcParser>
const char * ParseMessage (MessageLite *msg,const TcParseTableBase *tc_table,const char *ptr)
Use a template to avoid the strong dep into TcParser. All callers will have
the dep.
Defined at line 760 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename Parser = TcParser>
const char * ParseGroup (MessageLite *msg,const TcParseTableBase *tc_table,const char *ptr,uint32_tstart_tag)
Defined at line 768 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
const char * ParseGroup (MessageLite *msg,const char *ptr,uint32_ttag)
Defined at line 776 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename Func>
const char * ParseLengthDelimitedInlined (const char * , const Func & func)
Read the length prefix, push the new limit, call the func(ptr), and then
pop the limit. Useful for situations that don't have an actual message.
Defined at line 1411 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename Func>
const char * ParseGroupInlined (const char *ptr,uint32_tstart_tag,const Func &func)
Push the recursion depth, call the func(ptr), and then pop depth. Useful
for situations that don't have an actual message.
Defined at line 1425 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h
template <typename Func>
const char * ParseWithLengthInlined (const char *ptr,uint32_tlength,const Func &func)
Note that "length" is read outside of this function.
Defined at line 1457 of file ../../third_party/protobuf/src/src/google/protobuf/parse_context.h