[−][src]Struct xp3::reader::XP3Reader
Implementations
impl XP3Reader
[src]
pub fn open_archive<T: Read + Seek>(
stream: T
) -> Result<XP3Archive<T>, XP3Error>
[src]
stream: T
) -> Result<XP3Archive<T>, XP3Error>
Open XP3 archive.
pub fn read_container<T: Read + Seek>(
stream: &mut T
) -> Result<VirtualXP3, XP3Error>
[src]
stream: &mut T
) -> Result<VirtualXP3, XP3Error>
Read xp3 container using stream.
pub fn read_segment<O: Read + Seek, T: Write>(
segment: &XP3FileIndexSegment,
from: &mut O,
stream: &mut T
) -> Result<(), XP3Error>
[src]
segment: &XP3FileIndexSegment,
from: &mut O,
stream: &mut T
) -> Result<(), XP3Error>
Read data from provided segment.
pub fn check_archive(stream: &mut impl Read) -> Result<(), XP3Error>
[src]
Check if stream is valid xp3 archive or not. Will read 11 bytes from current position.
Auto Trait Implementations
impl RefUnwindSafe for XP3Reader
[src]
impl Send for XP3Reader
[src]
impl Sync for XP3Reader
[src]
impl Unpin for XP3Reader
[src]
impl UnwindSafe for XP3Reader
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,