diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-08-12 20:51:50 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2018-08-12 20:51:50 -0700 |
commit | 7059be68ae2cbd67fca4a5501d4324d44a3868cc (patch) | |
tree | 6be2b72de3eec671f482a9b8cb6c932a14dc01a6 /upb/msg.h | |
parent | c8f6a27e6b27ed5d51cf6c8da5ec080b9952fa99 (diff) |
Re-add message handlers to upb/handlers.*.
These are still being used by the proto2 bindings.
Diffstat (limited to 'upb/msg.h')
-rw-r--r-- | upb/msg.h | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -292,32 +292,6 @@ void upb_mapiter_setdone(upb_mapiter *i); bool upb_mapiter_isequal(const upb_mapiter *i1, const upb_mapiter *i2); -/** Handlers ******************************************************************/ - -/* These are the handlers used internally by upb_msgfactory_getmergehandlers(). - * They write scalar data to a known offset from the message pointer. - * - * These would be trivial for anyone to implement themselves, but it's better - * to use these because some JITs will recognize and specialize these instead - * of actually calling the function. */ - -/* Sets a handler for the given primitive field that will write the data at the - * given offset. If hasbit > 0, also sets a hasbit at the given bit offset - * (addressing each byte low to high). */ -bool upb_msg_setscalarhandler(upb_handlers *h, - const upb_fielddef *f, - size_t offset, - int32_t hasbit); - -/* If the given handler is a msghandlers_primitive field, returns true and sets - * *type, *offset and *hasbit. Otherwise returns false. */ -bool upb_msg_getscalarhandlerdata(const upb_handlers *h, - upb_selector_t s, - upb_fieldtype_t *type, - size_t *offset, - int32_t *hasbit); - - /** Interfaces for generated code *********************************************/ #define UPB_NOT_IN_ONEOF UINT16_MAX |