Lines Matching refs:type
395 switch (PB_LTYPE(field->type)) in decode_basic_field()
466 switch (PB_HTYPE(field->type)) in decode_static_field()
478 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_static_field()
520 if (PB_LTYPE_IS_SUBMSG(field->type) && in decode_static_field()
607 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in initialize_pointer_field()
608 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in initialize_pointer_field()
612 else if (PB_LTYPE_IS_SUBMSG(field->type)) in initialize_pointer_field()
628 switch (PB_HTYPE(field->type)) in decode_pointer_field()
633 if (PB_LTYPE_IS_SUBMSG(field->type) && *(void**)field->pField != NULL) in decode_pointer_field()
640 if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF) in decode_pointer_field()
645 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in decode_pointer_field()
646 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in decode_pointer_field()
664 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_pointer_field()
791 if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF) in decode_field()
798 switch (PB_ATYPE(field->type)) in decode_field()
842 if (extension->type->decode) in decode_extension()
843 status = extension->type->decode(stream, extension, tag, wire_type); in decode_extension()
859 pb_type_t type; in pb_field_set_to_default() local
860 type = field->type; in pb_field_set_to_default()
862 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_field_set_to_default()
877 else if (PB_ATYPE(type) == PB_ATYPE_STATIC) in pb_field_set_to_default()
880 if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_field_set_to_default()
886 else if (PB_HTYPE(type) == PB_HTYPE_REPEATED || in pb_field_set_to_default()
887 PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_field_set_to_default()
897 if (PB_LTYPE_IS_SUBMSG(field->type) && in pb_field_set_to_default()
919 else if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_field_set_to_default()
925 if (PB_HTYPE(type) == PB_HTYPE_REPEATED || in pb_field_set_to_default()
926 PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_field_set_to_default()
931 else if (PB_ATYPE(type) == PB_ATYPE_CALLBACK) in pb_field_set_to_default()
1030 if (!pb_field_iter_find(&iter, tag) || PB_LTYPE(iter.type) == PB_LTYPE_EXTENSION) in pb_decode_inner()
1070 if (PB_HTYPE(iter.type) == PB_HTYPE_REPEATED && iter.pSize == &iter.array_size) in pb_decode_inner()
1091 if (PB_HTYPE(iter.type) == PB_HTYPE_REQUIRED in pb_decode_inner()
1206 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_release_union_field()
1219 pb_type_t type; in pb_release_single_field() local
1220 type = field->type; in pb_release_single_field()
1222 if (PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_release_single_field()
1231 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_release_single_field()
1245 else if (PB_LTYPE_IS_SUBMSG(type) && PB_ATYPE(type) != PB_ATYPE_CALLBACK) in pb_release_single_field()
1250 if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_release_single_field()
1259 if (PB_HTYPE(type) == PB_HTYPE_REPEATED) in pb_release_single_field()
1263 if (PB_ATYPE(type) == PB_ATYPE_STATIC && count > field->array_size) in pb_release_single_field()
1280 if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_release_single_field()
1282 if (PB_HTYPE(type) == PB_HTYPE_REPEATED && in pb_release_single_field()
1283 (PB_LTYPE(type) == PB_LTYPE_STRING || in pb_release_single_field()
1284 PB_LTYPE(type) == PB_LTYPE_BYTES)) in pb_release_single_field()
1296 if (PB_HTYPE(type) == PB_HTYPE_REPEATED) in pb_release_single_field()
1408 if (PB_LTYPE(field->type) == PB_LTYPE_UVARINT) in pb_dec_varint()
1437 if (PB_LTYPE(field->type) == PB_LTYPE_SVARINT) in pb_dec_varint()
1494 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_dec_bytes()
1536 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_dec_string()
1583 if (PB_LTYPE(field->type) == PB_LTYPE_SUBMSG_W_CB && field->pSize != NULL) in pb_dec_submessage()
1605 if (PB_ATYPE(field->type) == PB_ATYPE_STATIC && in pb_dec_submessage()
1606 PB_HTYPE(field->type) != PB_HTYPE_REPEATED) in pb_dec_submessage()