pub struct Decryptor { /* private fields */ }Implementations§
Source§impl Decryptor
impl Decryptor
pub fn new( enc: &Dict, file_id: &[u8], password: Option<&str>, resolve: &dyn Fn(&Object) -> Object, ) -> Result<Self>
pub fn decrypt_string(&self, num: u32, gen: u16, data: &[u8]) -> Vec<u8> ⓘ
pub fn decrypt_stream(&self, num: u32, gen: u16, data: &[u8]) -> Vec<u8> ⓘ
Sourcepub fn stream_needs_decrypt(&self, stream_type: Option<&str>) -> bool
pub fn stream_needs_decrypt(&self, stream_type: Option<&str>) -> bool
Whether a stream of the given /Type is encrypted at all.
Auto Trait Implementations§
impl Forget for Decryptor
impl Freeze for Decryptor
impl Move for Decryptor
impl RefUnwindSafe for Decryptor
impl Send for Decryptor
impl Sync for Decryptor
impl Unpin for Decryptor
impl UnsafeUnpin for Decryptor
impl UnwindSafe for Decryptor
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