pub struct WzBinaryReader<R: Read + Seek> {
pub wz_key: WzKey,
pub hash: u32,
pub header: WzHeader,
pub start_offset: u64,
/* private fields */
}Fields§
§wz_key: WzKey§hash: u32§header: WzHeader§start_offset: u64Implementations§
Source§impl<R: Read + Seek> WzBinaryReader<R>
impl<R: Read + Seek> WzBinaryReader<R>
pub fn new(reader: R, iv: [u8; 4], header: WzHeader, start_offset: u64) -> Self
pub fn position(&mut self) -> WzResult<u64>
pub fn seek(&mut self, pos: u64) -> WzResult<()>
pub fn available(&mut self) -> WzResult<u64>
pub fn read_u8(&mut self) -> WzResult<u8>
pub fn read_u16(&mut self) -> WzResult<u16>
pub fn read_i16(&mut self) -> WzResult<i16>
pub fn read_u32(&mut self) -> WzResult<u32>
pub fn read_i32(&mut self) -> WzResult<i32>
pub fn read_i64(&mut self) -> WzResult<i64>
pub fn read_f32(&mut self) -> WzResult<f32>
pub fn read_f64(&mut self) -> WzResult<f64>
pub fn read_i8(&mut self) -> WzResult<i8>
pub fn read_bytes(&mut self, len: usize) -> WzResult<Vec<u8>>
pub fn read_compressed_int(&mut self) -> WzResult<i32>
pub fn read_compressed_long(&mut self) -> WzResult<i64>
pub fn read_wz_string(&mut self) -> WzResult<String>
pub fn read_string_at_offset(&mut self, offset: u64) -> WzResult<String>
pub fn read_string_block(&mut self, offset: u64) -> WzResult<String>
pub fn read_wz_offset(&mut self) -> WzResult<u64>
Auto Trait Implementations§
impl<R> Freeze for WzBinaryReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for WzBinaryReader<R>where
R: RefUnwindSafe,
impl<R> Send for WzBinaryReader<R>where
R: Send,
impl<R> Sync for WzBinaryReader<R>where
R: Sync,
impl<R> Unpin for WzBinaryReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for WzBinaryReader<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for WzBinaryReader<R>where
R: 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