Struct zifu::zip_eocd::ZipEOCD [−][src]
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]
pub fn from_reader<T: ReadBytesExt + Seek>(
read: &mut T
) -> Result<ZipEOCD, ZipReadError>
[src]
read: &mut T
) -> Result<ZipEOCD, ZipReadError>
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]
Auto Trait Implementations
impl RefUnwindSafe for ZipEOCD
[src]
impl Send for ZipEOCD
[src]
impl Sync for ZipEOCD
[src]
impl Unpin for ZipEOCD
[src]
impl UnwindSafe for ZipEOCD
[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, 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>,