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