Lines Matching refs:Decoder
665 /* A function that receives an error report from an encoder or decoder. The
7324 ** Internal-only definitions for the decoder.
7331 ** upb::pb::Decoder
7333 ** A high performance, streaming, resumable decoder for the binary protobuf
7336 ** This interface works the same regardless of what decoder backend is being
7338 ** a JITted decoder (DynASM, LLVM, etc) or an interpreted decoder. By default,
7339 ** it will always use the fastest available decoder. However, you can call
7340 ** set_allow_jit(false) to disable any JIT decoder that might be available.
7352 class Decoder;
7360 UPB_DECLARE_TYPE(upb::pb::Decoder, upb_pbdecoder)
7367 * calls to the decoder. The value is 14: a 5 byte unknown tag plus ten-byte
7384 /* Should the decoder push submessages to lazy handlers for fields that have
7409 /* The input handlers for this decoder method. */
7425 /* Preallocation hint: decoder won't allocate more bytes than this when first
7427 * But if the decoder library is upgraded without recompiling the application,
7433 /* A Decoder receives binary protobuf data on its input sink and pushes the
7435 class upb::pb::Decoder {
7437 /* Constructs a decoder instance for the given method, which must outlive this
7438 * decoder. Any errors during parsing will be set on the given status, which
7439 * must also outlive this decoder.
7442 static Decoder* Create(Environment* env, const DecoderMethod* method,
7445 /* Returns the DecoderMethod this decoder is parsing from. */
7448 /* The sink on which this decoder receives input. */
7475 UPB_DISALLOW_POD_OPS(Decoder, upb::pb::Decoder)
7483 * interpreted decoder or machine code for the JIT.
7574 inline Decoder* Decoder::Create(Environment* env, const DecoderMethod* m,
7578 inline const DecoderMethod* Decoder::method() const {
7581 inline BytesSink* Decoder::input() {
7584 inline uint64_t Decoder::BytesParsed() const {
7587 inline size_t Decoder::max_nesting() const {
7590 inline bool Decoder::set_max_nesting(size_t max) {
7593 inline void Decoder::Reset() { upb_pbdecoder_reset(this); }
7714 /* Method group; represents a set of decoder methods that had their code
7718 * Overall ownership of Decoder objects looks like this:
7753 * This specifies the size of the decoder's statically-sized array and therefore
7754 * setting it high will cause the upb::pb::Decoder object to be larger.
7756 * If necessary we can add a runtime-settable property to Decoder that allow
7762 /* Internal-only struct used by the decoder. */
7799 /* The decoder method group to which this method belongs. We own a ref.
7817 /* Dispatch table -- used by both bytecode decoder and JIT when encountering a
7819 * decoder.int.h for the layout of this table. */
7829 /* The decoder method we are parsing with (owned). */
7878 /* Decoder entry points; used as handlers. */
7885 /* Decoder-internal functions that the JIT calls to handle fallback paths. */
7901 /* Access to decoderplan members needed by the decoder. */
7946 /* All of the functions in decoder.c that return int32_t return values according
7951 * (the decoder state has already been suspended and is ready to be
8155 /* Preallocation hint: decoder won't allocate more bytes than this when first
8157 * But if the decoder library is upgraded without recompiling the application,
8230 ** state. For example, if a decoder is JIT-based, it will be re-JITted every
8321 * decoder.h */
8426 /* The input handlers for this decoder method. */