/rust/registry/src/index.crates.io-1949cf8c6b5b557f/protobuf-3.2.0/src/rt/message.rs
Line | Count | Source |
1 | | use crate::wire_format::WireType; |
2 | | use crate::CodedInputStream; |
3 | | use crate::CodedOutputStream; |
4 | | use crate::Message; |
5 | | use crate::MessageField; |
6 | | |
7 | | /// Read singular `message` field. |
8 | 0 | pub fn read_singular_message_into_field<M>( |
9 | 0 | is: &mut CodedInputStream, |
10 | 0 | target: &mut MessageField<M>, |
11 | 0 | ) -> crate::Result<()> |
12 | 0 | where |
13 | 0 | M: Message, |
14 | | { |
15 | 0 | let mut m = M::new(); |
16 | 0 | is.merge_message(&mut m)?; |
17 | 0 | *target = MessageField::some(m); |
18 | 0 | Ok(()) |
19 | 0 | } Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<audio_processor::proto::cdcfg::Processor> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<cras_processor::proto::cras_processor::Plugin> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::EnumOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::FileOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::FieldOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::OneofOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::MethodOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::MessageOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::ServiceOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::SourceCodeInfo> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::EnumValueOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::GeneratedCodeInfo> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::descriptor::ExtensionRangeOptions> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::plugin::Version> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::well_known_types::source_context::SourceContext> Unexecuted instantiation: protobuf::rt::message::read_singular_message_into_field::<protobuf::well_known_types::any::Any> |
20 | | |
21 | | /// Write message with field number and length to the stream. |
22 | 0 | pub fn write_message_field_with_cached_size<M>( |
23 | 0 | field_number: u32, |
24 | 0 | message: &M, |
25 | 0 | os: &mut CodedOutputStream, |
26 | 0 | ) -> crate::Result<()> |
27 | 0 | where |
28 | 0 | M: Message, |
29 | | { |
30 | 0 | os.write_tag(field_number, WireType::LengthDelimited)?; |
31 | 0 | os.write_raw_varint32(message.cached_size())?; |
32 | 0 | message.write_to_with_cached_sizes(os) |
33 | 0 | } Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::CheckFormat> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::MaybeWavDump> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::ShuffleChannels> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::MaybeDuplicateChannel0> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::Peer> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::Plugin> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::Pipeline> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::Resample> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::DlcPlugin> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::Processor> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<audio_processor::proto::cdcfg::WrapChunk> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<cras_processor::proto::cras_processor::Plugin> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::EnumOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::FileOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::FieldOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::OneofOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::MethodOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::MessageOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::ServiceOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::SourceCodeInfo> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::DescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::EnumValueOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::GeneratedCodeInfo> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::EnumDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::FileDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::UninterpretedOption> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::FieldDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::OneofDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::ExtensionRangeOptions> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::MethodDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::ServiceDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::EnumValueDescriptorProto> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::plugin::Version> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::descriptor_proto::ReservedRange> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::descriptor_proto::ExtensionRange> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::source_code_info::Location> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::generated_code_info::Annotation> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::uninterpreted_option::NamePart> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::descriptor::enum_descriptor_proto::EnumReservedRange> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::source_context::SourceContext> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::any::Any> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::api::Mixin> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::api::Method> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::type_::Field> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::type_::Option> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::type_::EnumValue> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::struct_::Value> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::struct_::Struct> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::well_known_types::struct_::ListValue> Unexecuted instantiation: protobuf::rt::message::write_message_field_with_cached_size::<protobuf::plugin::code_generator_response::File> |