Lines Matching defs:ofs

35 #define UPB_PTR_AT(msg, ofs, type) ((type*)((char*)(msg) + (ofs)))
725 upb_inttable *upb_inttable_pack(const upb_inttable *t, void *p, size_t *ofs,
727 upb_strtable *upb_strtable_pack(const upb_strtable *t, void *p, size_t *ofs,
945 #define PTR_AT(msg, ofs, type) (type*)((const char*)msg + ofs)
1030 UPB_INLINE bool _upb_has_submsg_nohasbit(const void *msg, size_t ofs) {
1031 return *PTR_AT(msg, ofs, const void*) != NULL;
1067 UPB_INLINE const void *_upb_array_accessor(const void *msg, size_t ofs,
1069 const upb_array *arr = *PTR_AT(msg, ofs, const upb_array*);
1079 UPB_INLINE void *_upb_array_mutable_accessor(void *msg, size_t ofs,
1081 upb_array *arr = *PTR_AT(msg, ofs, upb_array*);
1091 UPB_INLINE void *_upb_array_resize_accessor(void *msg, size_t ofs, size_t size,
1094 upb_array **arr_ptr = PTR_AT(msg, ofs, upb_array*);
1104 UPB_INLINE bool _upb_array_append_accessor(void *msg, size_t ofs,
1109 upb_array **arr_ptr = PTR_AT(msg, ofs, upb_array*);
1248 UPB_INLINE size_t _upb_msg_map_size(const upb_msg *msg, size_t ofs) {
1249 upb_map *map = *UPB_PTR_AT(msg, ofs, upb_map *);
1253 UPB_INLINE bool _upb_msg_map_get(const upb_msg *msg, size_t ofs,
1256 upb_map *map = *UPB_PTR_AT(msg, ofs, upb_map *);
1261 UPB_INLINE void *_upb_msg_map_next(const upb_msg *msg, size_t ofs,
1263 upb_map *map = *UPB_PTR_AT(msg, ofs, upb_map *);
1268 UPB_INLINE bool _upb_msg_map_set(upb_msg *msg, size_t ofs, const void *key,
1271 upb_map **map = PTR_AT(msg, ofs, upb_map *);
1278 UPB_INLINE bool _upb_msg_map_delete(upb_msg *msg, size_t ofs, const void *key,
1280 upb_map *map = *UPB_PTR_AT(msg, ofs, upb_map *);
1285 UPB_INLINE void _upb_msg_map_clear(upb_msg *msg, size_t ofs) {
1286 upb_map *map = *UPB_PTR_AT(msg, ofs, upb_map *);
6084 /* While compiling, the base is relative in "ofs", after compiling it is
6087 uint32_t ofs; /* PC offset of method. */
6206 UPB_INLINE uint64_t upb_pbdecoder_packdispatch(uint64_t ofs, uint8_t wt1,
6208 return (ofs << 16) | (wt2 << 8) | wt1;
6211 UPB_INLINE void upb_pbdecoder_unpackdispatch(uint64_t dispatch, uint64_t *ofs,
6215 *ofs = dispatch >> 16;