Function mesh::payload::protobuf::decode_with

source ยท
pub fn decode_with<'a, E, T, R>(
    message: &mut InplaceOption<'_, T>,
    data: &'a [u8],
    resources: &mut [Option<R>],
) -> Result<(), Error>
where E: MessageDecode<'a, T, R>,
Expand description

Decodes a protobuf message into message using encoding T.

If message already exists, then the fields are merged according to protobuf rules.