/* ** Internal implementation details of the decoder that are shared between ** decode.c and decode_fast.c. */ #ifndef UPB_DECODE_INT_H_ #define UPB_DECODE_INT_H_ #include #include "upb/msg.h" #include "upb/upb.int.h" /* Must be last. */ #include "upb/port_def.inc" typedef struct upb_decstate { const char *limit; /* End of delimited region or end of buffer. */ const char *fastend; /* The end of the entire buffer - 16 */ const char *fastlimit; /* UPB_MIN(limit, fastend) */ upb_arena arena; int depth; uint32_t end_group; /* Set to field number of END_GROUP tag, if any. */ jmp_buf err; } upb_decstate; const char *fastdecode_dispatch(upb_decstate *d, const char *ptr, upb_msg *msg, const upb_msglayout *table, uint64_t hasbits); const char *fastdecode_err(upb_decstate *d); #include "upb/port_undef.inc" #endif /* UPB_DECODE_INT_H_ */