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,
}
Expand description

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

Writes EOCD to stream.

Errors

Returns an error if writing fails.

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

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

Checks if ZIP archive is not supported.

Errors

If not supported, returns ZipReadError.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.