Lines Matching refs:type
397 switch (PB_LTYPE(field->type)) in decode_basic_field()
468 switch (PB_HTYPE(field->type)) in decode_static_field()
480 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_static_field()
522 if (PB_LTYPE_IS_SUBMSG(field->type) && in decode_static_field()
609 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in initialize_pointer_field()
610 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in initialize_pointer_field()
614 else if (PB_LTYPE_IS_SUBMSG(field->type)) in initialize_pointer_field()
630 switch (PB_HTYPE(field->type)) in decode_pointer_field()
635 if (PB_LTYPE_IS_SUBMSG(field->type) && *(void**)field->pField != NULL) in decode_pointer_field()
642 if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF) in decode_pointer_field()
647 if (PB_LTYPE(field->type) == PB_LTYPE_STRING || in decode_pointer_field()
648 PB_LTYPE(field->type) == PB_LTYPE_BYTES) in decode_pointer_field()
666 && PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in decode_pointer_field()
802 if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF) in decode_field()
809 switch (PB_ATYPE(field->type)) in decode_field()
853 if (extension->type->decode) in decode_extension()
854 status = extension->type->decode(stream, extension, tag, wire_type); in decode_extension()
870 pb_type_t type; in pb_field_set_to_default() local
871 type = field->type; in pb_field_set_to_default()
873 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_field_set_to_default()
888 else if (PB_ATYPE(type) == PB_ATYPE_STATIC) in pb_field_set_to_default()
891 if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_field_set_to_default()
897 else if (PB_HTYPE(type) == PB_HTYPE_REPEATED || in pb_field_set_to_default()
898 PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_field_set_to_default()
908 if (PB_LTYPE_IS_SUBMSG(field->type) && in pb_field_set_to_default()
930 else if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_field_set_to_default()
936 if (PB_HTYPE(type) == PB_HTYPE_REPEATED || in pb_field_set_to_default()
937 PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_field_set_to_default()
942 else if (PB_ATYPE(type) == PB_ATYPE_CALLBACK) in pb_field_set_to_default()
1041 if (!pb_field_iter_find(&iter, tag) || PB_LTYPE(iter.type) == PB_LTYPE_EXTENSION) in pb_decode_inner()
1081 if (PB_HTYPE(iter.type) == PB_HTYPE_REPEATED && iter.pSize == &iter.array_size) in pb_decode_inner()
1102 if (PB_HTYPE(iter.type) == PB_HTYPE_REQUIRED in pb_decode_inner()
1217 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_release_union_field()
1230 pb_type_t type; in pb_release_single_field() local
1231 type = field->type; in pb_release_single_field()
1233 if (PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_release_single_field()
1242 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_release_single_field()
1256 else if (PB_LTYPE_IS_SUBMSG(type) && PB_ATYPE(type) != PB_ATYPE_CALLBACK) in pb_release_single_field()
1261 if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_release_single_field()
1270 if (PB_HTYPE(type) == PB_HTYPE_REPEATED) in pb_release_single_field()
1274 if (PB_ATYPE(type) == PB_ATYPE_STATIC && count > field->array_size) in pb_release_single_field()
1291 if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_release_single_field()
1293 if (PB_HTYPE(type) == PB_HTYPE_REPEATED && in pb_release_single_field()
1294 (PB_LTYPE(type) == PB_LTYPE_STRING || in pb_release_single_field()
1295 PB_LTYPE(type) == PB_LTYPE_BYTES)) in pb_release_single_field()
1307 if (PB_HTYPE(type) == PB_HTYPE_REPEATED) in pb_release_single_field()
1426 if (PB_LTYPE(field->type) == PB_LTYPE_UVARINT) in pb_dec_varint()
1455 if (PB_LTYPE(field->type) == PB_LTYPE_SVARINT) in pb_dec_varint()
1512 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_dec_bytes()
1554 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_dec_string()
1601 if (PB_LTYPE(field->type) == PB_LTYPE_SUBMSG_W_CB && field->pSize != NULL) in pb_dec_submessage()
1623 if (PB_ATYPE(field->type) == PB_ATYPE_STATIC && in pb_dec_submessage()
1624 PB_HTYPE(field->type) != PB_HTYPE_REPEATED) in pb_dec_submessage()