pub struct ZstdSeekTable { /* private fields */ }Expand description
A table containing offsets and sizes for the frames within a zstd stream, such as from the zstd seekable format.
§Reading
If a zstd stream uses the zstd seekable format, you can parse its
seek table using the read_seek_table function (or one of its async
variants).
§Usage
ZstdReader can use a seek table to speed up
seeks through the stream. To do so, pass the stream’s seek table using
the .with_seek_table()
builder option. When using AsyncZstdReader,
you need to use both the .with_seek_table() builder option and the
.seekable() wrapper method.
§Writing
ZstdWriter can write a seek table by enabling the
.with_seek_table()
builder option. The same applies when using AsyncZstdWriter.
Implementations§
Source§impl ZstdSeekTable
impl ZstdSeekTable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZstdSeekTable
impl RefUnwindSafe for ZstdSeekTable
impl Send for ZstdSeekTable
impl Sync for ZstdSeekTable
impl Unpin for ZstdSeekTable
impl UnwindSafe for ZstdSeekTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more