Lines Matching refs:type
140 if (PB_ATYPE(field->type) != PB_ATYPE_POINTER && count > field->array_size) in encode_array()
145 if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in encode_array()
151 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32) in encode_array()
155 else if (PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
182 … if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32 || PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
205 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER && in encode_array()
206 (PB_LTYPE(field->type) == PB_LTYPE_STRING || in encode_array()
207 PB_LTYPE(field->type) == PB_LTYPE_BYTES)) in encode_array()
245 pb_type_t type = field->type; in pb_check_proto3_default_value() local
247 if (PB_ATYPE(type) == PB_ATYPE_STATIC) in pb_check_proto3_default_value()
249 if (PB_HTYPE(type) == PB_HTYPE_REQUIRED) in pb_check_proto3_default_value()
254 else if (PB_HTYPE(type) == PB_HTYPE_REPEATED) in pb_check_proto3_default_value()
259 else if (PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_check_proto3_default_value()
264 else if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_check_proto3_default_value()
281 if (PB_LTYPE(type) <= PB_LTYPE_LAST_PACKABLE) in pb_check_proto3_default_value()
296 else if (PB_LTYPE(type) == PB_LTYPE_BYTES) in pb_check_proto3_default_value()
301 else if (PB_LTYPE(type) == PB_LTYPE_STRING) in pb_check_proto3_default_value()
305 else if (PB_LTYPE(type) == PB_LTYPE_FIXED_LENGTH_BYTES) in pb_check_proto3_default_value()
312 else if (PB_LTYPE_IS_SUBMSG(type)) in pb_check_proto3_default_value()
334 else if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_check_proto3_default_value()
338 else if (PB_ATYPE(type) == PB_ATYPE_CALLBACK) in pb_check_proto3_default_value()
340 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_check_proto3_default_value()
372 switch (PB_LTYPE(field->type)) in encode_basic_field()
420 if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF) in encode_field()
428 else if (PB_HTYPE(field->type) == PB_HTYPE_OPTIONAL) in encode_field()
438 else if (PB_ATYPE(field->type) == PB_ATYPE_STATIC) in encode_field()
448 if (PB_HTYPE(field->type) == PB_HTYPE_REQUIRED) in encode_field()
456 if (PB_ATYPE(field->type) == PB_ATYPE_CALLBACK) in encode_field()
460 else if (PB_HTYPE(field->type) == PB_HTYPE_REPEATED) in encode_field()
493 if (extension->type->encode) in encode_extension_field()
494 status = extension->type->encode(stream, extension); in encode_extension_field()
518 if (PB_LTYPE(iter.type) == PB_LTYPE_EXTENSION) in pb_encode()
683 switch (PB_LTYPE(field->type)) in pb_encode_tag_for_field()
784 if (PB_LTYPE(field->type) == PB_LTYPE_UVARINT) in pb_enc_varint()
818 if (PB_LTYPE(field->type) == PB_LTYPE_SVARINT) in pb_enc_varint()
833 if (field->data_size == sizeof(float) && PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in pb_enc_fixed()
867 if (PB_ATYPE(field->type) == PB_ATYPE_STATIC && in pb_enc_bytes()
882 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_enc_string()
934 if (PB_LTYPE(field->type) == PB_LTYPE_SUBMSG_W_CB && field->pSize != NULL) in pb_enc_submessage()