Lines Matching refs:type
138 if (PB_ATYPE(field->type) != PB_ATYPE_POINTER && count > field->array_size) in encode_array()
143 if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE) in encode_array()
149 if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32) in encode_array()
153 else if (PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
180 … if (PB_LTYPE(field->type) == PB_LTYPE_FIXED32 || PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in encode_array()
203 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER && in encode_array()
204 (PB_LTYPE(field->type) == PB_LTYPE_STRING || in encode_array()
205 PB_LTYPE(field->type) == PB_LTYPE_BYTES)) in encode_array()
243 pb_type_t type = field->type; in pb_check_proto3_default_value() local
245 if (PB_ATYPE(type) == PB_ATYPE_STATIC) in pb_check_proto3_default_value()
247 if (PB_HTYPE(type) == PB_HTYPE_REQUIRED) in pb_check_proto3_default_value()
252 else if (PB_HTYPE(type) == PB_HTYPE_REPEATED) in pb_check_proto3_default_value()
257 else if (PB_HTYPE(type) == PB_HTYPE_ONEOF) in pb_check_proto3_default_value()
262 else if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_check_proto3_default_value()
279 if (PB_LTYPE(type) <= PB_LTYPE_LAST_PACKABLE) in pb_check_proto3_default_value()
294 else if (PB_LTYPE(type) == PB_LTYPE_BYTES) in pb_check_proto3_default_value()
299 else if (PB_LTYPE(type) == PB_LTYPE_STRING) in pb_check_proto3_default_value()
303 else if (PB_LTYPE(type) == PB_LTYPE_FIXED_LENGTH_BYTES) in pb_check_proto3_default_value()
310 else if (PB_LTYPE_IS_SUBMSG(type)) in pb_check_proto3_default_value()
332 else if (PB_ATYPE(type) == PB_ATYPE_POINTER) in pb_check_proto3_default_value()
336 else if (PB_ATYPE(type) == PB_ATYPE_CALLBACK) in pb_check_proto3_default_value()
338 if (PB_LTYPE(type) == PB_LTYPE_EXTENSION) in pb_check_proto3_default_value()
370 switch (PB_LTYPE(field->type)) in encode_basic_field()
418 if (PB_HTYPE(field->type) == PB_HTYPE_ONEOF) in encode_field()
426 else if (PB_HTYPE(field->type) == PB_HTYPE_OPTIONAL) in encode_field()
436 else if (PB_ATYPE(field->type) == PB_ATYPE_STATIC) in encode_field()
446 if (PB_HTYPE(field->type) == PB_HTYPE_REQUIRED) in encode_field()
454 if (PB_ATYPE(field->type) == PB_ATYPE_CALLBACK) in encode_field()
458 else if (PB_HTYPE(field->type) == PB_HTYPE_REPEATED) in encode_field()
491 if (extension->type->encode) in encode_extension_field()
492 status = extension->type->encode(stream, extension); in encode_extension_field()
516 if (PB_LTYPE(iter.type) == PB_LTYPE_EXTENSION) in pb_encode()
670 switch (PB_LTYPE(field->type)) in pb_encode_tag_for_field()
771 if (PB_LTYPE(field->type) == PB_LTYPE_UVARINT) in pb_enc_varint()
805 if (PB_LTYPE(field->type) == PB_LTYPE_SVARINT) in pb_enc_varint()
820 if (field->data_size == sizeof(float) && PB_LTYPE(field->type) == PB_LTYPE_FIXED64) in pb_enc_fixed()
854 if (PB_ATYPE(field->type) == PB_ATYPE_STATIC && in pb_enc_bytes()
869 if (PB_ATYPE(field->type) == PB_ATYPE_POINTER) in pb_enc_string()
921 if (PB_LTYPE(field->type) == PB_LTYPE_SUBMSG_W_CB && field->pSize != NULL) in pb_enc_submessage()