pub async fn read_message<M: Message + Default>(
reader: &dyn Reader,
pos: usize,
) -> Result<M>
Expand description
Read a protobuf message at file position ‘pos’.
We write protobuf by first writing the length of the message as a u32, followed by the message itself.