Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
917 B
33 lines
917 B
/* |
|
** 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 <setjmp.h> |
|
|
|
#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_ */
|
|
|