Struct zip_structs::zip_eocd::ZipEOCD
source · 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
sourceimpl ZipEOCD
impl ZipEOCD
pub fn from_reader<T: ReadBytesExt + Seek>(
read: &mut T
) -> Result<ZipEOCD, ZipReadError>
sourcepub fn is_single_archive(&self) -> bool
pub fn is_single_archive(&self) -> bool
分割されたZIPファイルでなければtrue /
Returns true
if ZIP archive is NOT splitted