[−][src]Struct xp3::index::file::XP3FileIndex
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]
info: XP3FileIndexInfo,
segments: Vec<XP3FileIndexSegment>,
adler: XP3FileIndexAdler,
time: Option<XP3FileIndexTime>
) -> Self
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]
file_size: u64,
stream: &mut impl Read
) -> Result<(u64, Self), XP3Error>
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]
pub fn clone(&self) -> XP3FileIndex
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for XP3FileIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for XP3FileIndex
[src]
impl Send for XP3FileIndex
[src]
impl Sync for XP3FileIndex
[src]
impl Unpin for XP3FileIndex
[src]
impl UnwindSafe for XP3FileIndex
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,