encode.h 359 B

123456789101112131415161718192021
  1. /*
  2. ** upb_encode: parsing into a upb_msg using a upb_msglayout.
  3. */
  4. #ifndef UPB_ENCODE_H_
  5. #define UPB_ENCODE_H_
  6. #include "upb/msg.h"
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. char *upb_encode(const void *msg, const upb_msglayout *l, upb_arena *arena,
  11. size_t *size);
  12. #ifdef __cplusplus
  13. } /* extern "C" */
  14. #endif
  15. #endif /* UPB_ENCODE_H_ */