pub struct SqPackData { /* private fields */ }
Implementations§
Source§impl SqPackData
impl SqPackData
Sourcepub fn from_existing(path: &str) -> Option<Self>
pub fn from_existing(path: &str) -> Option<Self>
Creates a new reference to an existing dat file.
Sourcepub fn read_from_offset(&mut self, offset: u64) -> Option<ByteBuffer>
pub fn read_from_offset(&mut self, offset: u64) -> Option<ByteBuffer>
Reads from a certain offset inside of the dat file. This offset will be fixed automatically by the function.
If the block of data is successfully parsed, it returns the file data - otherwise is None.
Auto Trait Implementations§
impl Freeze for SqPackData
impl RefUnwindSafe for SqPackData
impl Send for SqPackData
impl Sync for SqPackData
impl Unpin for SqPackData
impl UnwindSafe for SqPackData
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