Searched refs:parse_from_bytes (Results 1 – 21 of 21) sorted by relevance
1 use crate::parse_from_bytes;93 Ok(Some(parse_from_bytes(&self.value)?)) in unpack()
112 fn parse_from_bytes(bytes: &[u8]) -> ProtobufResult<Self> in parse_from_bytes() method272 pub fn parse_from_bytes<M: Message>(bytes: &[u8]) -> ProtobufResult<M> { in parse_from_bytes() function273 M::parse_from_bytes(bytes) in parse_from_bytes()
23 pub use crate::message::parse_from_bytes;
188 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
663 .map(|bytes| M::parse_from_bytes(bytes).expect("cannot parse message")) in get_from_unknown()
1521 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
10851 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
92 Ok(Some(M::parse_from_bytes(&self.value)?)) in unpack()
201 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
244 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
378 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
331 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
356 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
367 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
1002 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
1285 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
1555 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
2226 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() in parse_descriptor_proto()
34 use protobuf::{parse_from_bytes, Message, ProtobufEnum, RepeatedField};312 parse_from_bytes(&self.response_buffer[..msg_size]).map_err(proto_error_to_int)?; in main_transaction()1073 let response: VcpuResponse = parse_from_bytes( in vcpu_recv()
524 let request = protobuf::parse_from_bytes::<MainRequest>(&self.request_buffer[..msg_size]) in handle_socket()
596 protobuf::parse_from_bytes::<VcpuRequest>(&request_buffer[..msg_size]) in handle_request()