pub struct LibReader<R> { /* private fields */ }Expand description
LIB 结构,惰性读取器
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>
检测是否为有效的静态库文件
Sourcepub fn read_library(&mut self) -> Result<&StaticLibrary, GaiaError>
pub fn read_library(&mut self) -> Result<&StaticLibrary, GaiaError>
读取静态库
Sourcepub fn get_file_size(&mut self) -> Result<u64, GaiaError>
pub fn get_file_size(&mut self) -> Result<u64, GaiaError>
获取文件大小
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> !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