Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/compiler/java/
Djava_message.cc543 vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateMessageSerializationMethods() local
545 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateMessageSerializationMethods()
547 sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateMessageSerializationMethods()
583 i < descriptor_->field_count() || j < sorted_extensions.size(); in GenerateMessageSerializationMethods()
586 GenerateSerializeOneExtensionRange(printer, sorted_extensions[j++]); in GenerateMessageSerializationMethods()
587 } else if (j == sorted_extensions.size()) { in GenerateMessageSerializationMethods()
589 } else if (sorted_fields[i]->number() < sorted_extensions[j]->start) { in GenerateMessageSerializationMethods()
592 GenerateSerializeOneExtensionRange(printer, sorted_extensions[j++]); in GenerateMessageSerializationMethods()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc2362 vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateSerializeWithCachedSizesBody() local
2364 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateSerializeWithCachedSizesBody()
2366 sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateSerializeWithCachedSizesBody()
2372 i < descriptor_->field_count() || j < sorted_extensions.size(); in GenerateSerializeWithCachedSizesBody()
2376 sorted_extensions[j++], in GenerateSerializeWithCachedSizesBody()
2378 } else if (j == sorted_extensions.size()) { in GenerateSerializeWithCachedSizesBody()
2380 } else if (ordered_fields[i]->number() < sorted_extensions[j]->start) { in GenerateSerializeWithCachedSizesBody()
2384 sorted_extensions[j++], in GenerateSerializeWithCachedSizesBody()