Function mesh_protobuf::protobuf::decode_with

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

Decodes a protobuf message into message using encoding T.

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