pub fn read_stream_metadata<R: Read>(reader: &mut R) -> Result<StreamMetadata>
Reads the metadata of the stream