Function substreams::proto::decode_ptr

source ยท
pub fn decode_ptr<T: Default + Message>(
    ptr: *mut u8,
    size: usize,
) -> Result<T, DecodeError>
Expand description

Given a pointer to a byte array, it will read and decode the data in a Protobuf message.