[][src]Struct xp3::reader::XP3Reader

pub struct XP3Reader;

Implementations

impl XP3Reader[src]

pub fn open_archive<T: Read + Seek>(
    stream: T
) -> Result<XP3Archive<T>, XP3Error>
[src]

Open XP3 archive.

pub fn read_container<T: Read + Seek>(
    stream: &mut T
) -> Result<VirtualXP3, XP3Error>
[src]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.