pub fn read_seek_table<R>(reader: &mut R) -> Result<Option<ZstdSeekTable>>Expand description
Read the seek table from the end of a zstd seekable format stream.
Returns Ok(None) if the stream doesn’t apper to contain a seek table.
Otherwise, returns Err(_) if the seek table could not be parsed or
if an I/O error occurred while trying to read the seek table. If it
returns Ok(_), it will also restore the reader to its original
stream position.
The seek table is returned as-is from the underlying reader. No attempt is made to validate that the seek table lines up with the underlying zstd stream. This means a malformed seek table could have out-of-bounds offsets, could omit sections of the underyling stream, or could be misaligned from frames of the underlying stream.
Async implementations: