[][src]Struct xp3::index::file::XP3FileIndex

pub struct XP3FileIndex { /* fields omitted */ }

FileIndex for xp3 archive. Contains information about file and data offsets.

Implementations

impl XP3FileIndex[src]

pub fn new(
    info: XP3FileIndexInfo,
    segments: Vec<XP3FileIndexSegment>,
    adler: XP3FileIndexAdler,
    time: Option<XP3FileIndexTime>
) -> Self
[src]

pub fn time(&self) -> Option<XP3FileIndexTime>[src]

File time

pub fn adler(&self) -> XP3FileIndexAdler[src]

File adler hash

pub fn info(&self) -> &XP3FileIndexInfo[src]

File information

pub fn segments(&self) -> &Vec<XP3FileIndexSegment>[src]

File segments

pub fn from_bytes(
    file_size: u64,
    stream: &mut impl Read
) -> Result<(u64, Self), XP3Error>
[src]

Read xp3 file index from stream. Returns read size, XP3FileIndex tuple.

pub fn write_bytes(&self, stream: &mut impl Write) -> Result<u64, XP3Error>[src]

Write xp3 file index to stream.

Trait Implementations

impl Clone for XP3FileIndex[src]

impl Debug for XP3FileIndex[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.