pub struct PfscImage<I: Image> { /* private fields */ }Expand description
A decompressing Image adapter for PFSC-compressed files.
Each PFSC block is independently compressed, so read_at at any offset
only needs to decompress one block (or two if straddling a boundary).
All state is local to each call — no shared mutable state, naturally
thread-safe.
Created via PfscImage::open().
§Example
use orbis_pfs::image::Image;
use orbis_pfs::pfsc::PfscImage;
let pfsc = PfscImage::open(source)?;
let pfs = orbis_pfs::open_image(pfsc)?;Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for PfscImage<I>where
I: Freeze,
impl<I> RefUnwindSafe for PfscImage<I>where
I: RefUnwindSafe,
impl<I> Send for PfscImage<I>
impl<I> Sync for PfscImage<I>
impl<I> Unpin for PfscImage<I>where
I: Unpin,
impl<I> UnwindSafe for PfscImage<I>where
I: UnwindSafe,
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