Searched refs:PTR_AT (Results 1 – 5 of 5) sorted by relevance
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | msg.h | 25 #define PTR_AT(msg, ofs, type) (type*)((const char*)msg + ofs) macro 136 return (*PTR_AT(msg, idx / 8, const char) & (1 << (idx % 8))) != 0; in _upb_hasbit() 140 (*PTR_AT(msg, idx / 8, char)) |= (char)(1 << (idx % 8)); in _upb_sethas() 144 (*PTR_AT(msg, idx / 8, char)) &= (char)(~(1 << (idx % 8))); in _upb_clearhas() 170 return PTR_AT(msg, case_ofs, uint32_t); in _upb_oneofcase() 174 return *PTR_AT(msg, case_ofs, uint32_t); in _upb_getoneofcase() 193 return *PTR_AT(msg, ofs, const upb_msg*) != NULL; in _upb_has_submsg_nohasbit() 270 const upb_array *arr = *PTR_AT(msg, ofs, const upb_array*); in _upb_array_accessor() 282 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); in _upb_array_mutable_accessor() 295 upb_array **arr_ptr = PTR_AT(msg, ofs, upb_array *); in _upb_array_resize_accessor2() [all …]
|
/external/protobuf/php/ext/google/protobuf/ |
D | upb.h | 768 #define PTR_AT(msg, ofs, type) (type*)((const char*)msg + ofs) macro 772 const upb_array *arr = *PTR_AT(msg, ofs, const upb_array*); in _upb_array_accessor() 784 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); in _upb_array_mutable_accessor() 800 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); in _upb_array_resize_accessor() 805 *PTR_AT(msg, ofs, upb_array*) = arr; in _upb_array_resize_accessor() 830 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); in _upb_array_append_accessor() 835 memcpy(PTR_AT(data, i * elem_size, char), value, elem_size); in _upb_array_append_accessor() 840 return (*PTR_AT(msg, idx / 8, const char) & (1 << (idx % 8))) != 0; in _upb_has_field() 844 return (*PTR_AT(msg, idx / 8, char)) |= (1 << (idx % 8)); in _upb_sethas() 848 return (*PTR_AT(msg, idx / 8, char)) &= ~(1 << (idx % 8)); in _upb_clearhas() [all …]
|
D | upb.c | 3851 #define PTR_AT(msg, ofs, type) (type*)((char*)msg + ofs) macro 3852 #define VOIDPTR_AT(msg, ofs) PTR_AT(msg, ofs, void) 3946 #define DEREF(msg, ofs, type) *PTR_AT(msg, ofs, type) 4019 return PTR_AT(msg, ~field->presence, uint32_t); in upb_msg_oneofcase()
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | upb.h | 6902 #define PTR_AT(msg, ofs, type) (type*)((const char*)msg + ofs) 6906 const upb_array *arr = *PTR_AT(msg, ofs, const upb_array*); 6918 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); 6934 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); 6939 *PTR_AT(msg, ofs, upb_array*) = arr; 6965 upb_array *arr = *PTR_AT(msg, ofs, upb_array*); 6970 memcpy(PTR_AT(data, i * elem_size, char), value, elem_size); 6975 return (*PTR_AT(msg, idx / 8, const char) & (idx % 8)) != 0; 6979 return (*PTR_AT(msg, idx / 8, char)) |= (1 << (idx % 8)); 6983 return (*PTR_AT(msg, idx / 8, char)) &= ~(1 << (idx % 8)); [all …]
|
D | upb.c | 4715 #define PTR_AT(msg, ofs, type) (type*)((char*)msg + ofs) macro 4716 #define VOIDPTR_AT(msg, ofs) PTR_AT(msg, ofs, void) 4812 #define DEREF(msg, ofs, type) *PTR_AT(msg, ofs, type) 4885 return PTR_AT(msg, ~field->presence, uint32_t); in upb_msg_oneofcase()
|