[][src]Function capnp::serialize::read_message_from_flat_slice

pub fn read_message_from_flat_slice<'a>(
    slice: &mut &'a [Word],
    options: ReaderOptions
) -> Result<Reader<SliceSegments<'a>>>

Reads a serialized message from a flat slice of words, without copying. The slice is allowed to extend beyond the end of the message. On success, updates slice to point to the remaining words beyond the end of the message.