Struct zifu::zip_eocd::ZipEOCD[][src]

pub struct ZipEOCD {
    pub eocd_disk_index: u16,
    pub cd_start_disk_index: u16,
    pub n_cd_entries_in_disk: u16,
    pub n_cd_entries: u16,
    pub cd_size: u32,
    pub cd_starting_position: u32,
    pub comment_length: u16,
    pub comment: Vec<u8>,
    pub starting_position_with_signature: u64,
    pub starting_position_without_signature: u64,
}

EOCD (End of Central Directory) 情報を保持する構造体 / Structure that contains EOCD (End of Central Directory) information

Fields

eocd_disk_index: u16

EOCDが存在するディスク番号 (0起算) / number of the disk where EOCD exists (0-based)

cd_start_disk_index: u16

セントラルディレクトリが始まるディスク番号 (0起算) / number of the disk with the start of the central directory (0-based)

n_cd_entries_in_disk: u16

EOCDがあるディスク内のセントラルディレクトリ総数 / total number of entries in the central directory on the disk whare EOCD exists

n_cd_entries: u16

セントラルディレクトリ総数 / total number of entries in the central directory

cd_size: u32

セントラルディレクトリのサイズ / size of the central directory

cd_starting_position: u32

セントラルディレクトリ開始位置 (絶対・0起算) offset of start of central directory (with respect to the starting disk number) (absolute value; 0-based)

comment_length: u16

ZIPコメント長 ZIP file comment length

comment: Vec<u8>

ZIPコメント ZIP file comment

starting_position_with_signature: u64

EOCDの開始位置 (マジックナンバー) / (magick number of) EOCD starting position

starting_position_without_signature: u64

EOCDの開始位置 (マジックナンバーすぐ次) / EOCD starting position (next to magick number)

Implementations

impl ZipEOCD[src]

pub fn write<T: WriteBytesExt>(&self, write: &mut T) -> Result<()>[src]

Writes EOCD to stream.

Errors

Returns an error if writing fails.

pub fn from_reader<T: ReadBytesExt + Seek>(
    read: &mut T
) -> Result<ZipEOCD, ZipReadError>
[src]

pub fn is_single_archive(&self) -> bool[src]

分割されたZIPファイルでなければtrue / Returns true if ZIP archive is NOT splitted

pub fn is_zip64(&self) -> bool[src]

ZIP64ならtrue / Returns true if ZIP archive is ZIP64

pub fn check_unsupported_zip_type(&self) -> Result<(), ZipReadError>[src]

Checks if ZIP archive is not supported.

Errors

If not supported, returns ZipReadError.

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.