pub struct LibReader<R> { /* private fields */ }Expand description
LIB structure, lazy reader
Implementations§
Source§impl<R: Read + Seek> LibReader<R>
impl<R: Read + Seek> LibReader<R>
Sourcepub fn is_valid_lib(&mut self) -> Result<bool, GaiaError>
pub fn is_valid_lib(&mut self) -> Result<bool, GaiaError>
Check if it is a valid static library file
Sourcepub fn read_library(&mut self) -> Result<&StaticLibrary, GaiaError>
pub fn read_library(&mut self) -> Result<&StaticLibrary, GaiaError>
Read static library
Sourcepub fn get_file_size(&mut self) -> Result<u64, GaiaError>
pub fn get_file_size(&mut self) -> Result<u64, GaiaError>
Get file size
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for LibReader<R>where
R: Freeze,
impl<R> !RefUnwindSafe for LibReader<R>
impl<R> Send for LibReader<R>where
R: Send,
impl<R> Sync for LibReader<R>where
R: Sync,
impl<R> Unpin for LibReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for LibReader<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for LibReader<R>
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