Home
last modified time | relevance | path

Searched refs:elem_size (Results 1 – 1 of 1) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Drepeated_field.c189 int elem_size = native_slot_size(self->field_type); in RepeatedField_reserve() local
199 self->elements = ALLOC_N(uint8_t, elem_size * self->capacity); in RepeatedField_reserve()
201 memcpy(self->elements, old_elems, self->size * elem_size); in RepeatedField_reserve()
339 size_t elem_size = native_slot_size(field_type); in RepeatedField_dup() local
342 for (int i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_dup()
358 size_t elem_size = native_slot_size(field_type); in RepeatedField_deep_copy() local
361 for (int i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_deep_copy()
382 size_t elem_size = native_slot_size(field_type); in RepeatedField_to_ary() local
385 for (int i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_to_ary()
429 size_t elem_size = native_slot_size(field_type); in RepeatedField_eq() local
[all …]