private void _read() { _versionMadeBy = m_io.ReadU2le(); _versionNeededToExtract = m_io.ReadU2le(); _flags = m_io.ReadU2le(); _compressionMethod = ((Zip.Compression)m_io.ReadU2le()); __raw_fileModTime = m_io.ReadBytes(4); var io___raw_fileModTime = new KaitaiStream(__raw_fileModTime); _fileModTime = new DosDatetime(io___raw_fileModTime); _crc32 = m_io.ReadU4le(); _lenBodyCompressed = m_io.ReadU4le(); _lenBodyUncompressed = m_io.ReadU4le(); _lenFileName = m_io.ReadU2le(); _lenExtra = m_io.ReadU2le(); _lenComment = m_io.ReadU2le(); _diskNumberStart = m_io.ReadU2le(); _intFileAttr = m_io.ReadU2le(); _extFileAttr = m_io.ReadU4le(); _ofsLocalHeader = m_io.ReadS4le(); _fileName = System.Text.Encoding.GetEncoding("UTF-8").GetString(m_io.ReadBytes(LenFileName)); __raw_extra = m_io.ReadBytes(LenExtra); var io___raw_extra = new KaitaiStream(__raw_extra); _extra = new Extras(io___raw_extra, this, m_root); _comment = System.Text.Encoding.GetEncoding("UTF-8").GetString(m_io.ReadBytes(LenComment)); }
public Time(KaitaiStream p__io, DosDatetime p__parent = null, DosDatetime p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; f_second = false; f_paddedSecond = false; f_paddedMinute = false; f_paddedHour = false; _read(); }
public Date(KaitaiStream p__io, DosDatetime p__parent = null, DosDatetime p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; f_year = false; f_paddedDay = false; f_paddedMonth = false; f_paddedYear = false; _read(); }
private void _read() { _headerChecksum = m_io.ReadU1(); _methodId = System.Text.Encoding.GetEncoding("ASCII").GetString(m_io.ReadBytes(5)); _fileSizeCompr = m_io.ReadU4le(); _fileSizeUncompr = m_io.ReadU4le(); __raw_fileTimestamp = m_io.ReadBytes(4); var io___raw_fileTimestamp = new KaitaiStream(__raw_fileTimestamp); _fileTimestamp = new DosDatetime(io___raw_fileTimestamp); _attr = m_io.ReadU1(); _lhaLevel = m_io.ReadU1(); }
private void _read() { _fileName = m_io.ReadBytes(11); __raw_attrs = m_io.ReadBytes(1); var io___raw_attrs = new KaitaiStream(__raw_attrs); _attrs = new AttrFlags(io___raw_attrs, this, m_root); _reserved = m_io.ReadBytes(10); __raw_lastWriteTime = m_io.ReadBytes(4); var io___raw_lastWriteTime = new KaitaiStream(__raw_lastWriteTime); _lastWriteTime = new DosDatetime(io___raw_lastWriteTime); _startClus = m_io.ReadU2le(); _fileSize = m_io.ReadU4le(); }
private void _read() { _lowUnpSize = m_io.ReadU4le(); _hostOs = ((Rar.Oses)m_io.ReadU1()); _fileCrc32 = m_io.ReadU4le(); __raw_fileTime = m_io.ReadBytes(4); var io___raw_fileTime = new KaitaiStream(__raw_fileTime); _fileTime = new DosDatetime(io___raw_fileTime); _rarVersion = m_io.ReadU1(); _method = ((Rar.Methods)m_io.ReadU1()); _nameSize = m_io.ReadU2le(); _attr = m_io.ReadU4le(); if ((M_Parent.Flags & 256) != 0) { _highPackSize = m_io.ReadU4le(); } _fileName = m_io.ReadBytes(NameSize); if ((M_Parent.Flags & 1024) != 0) { _salt = m_io.ReadU8le(); } }
private void _read() { _version = m_io.ReadU2le(); __raw_flags = m_io.ReadBytes(2); var io___raw_flags = new KaitaiStream(__raw_flags); _flags = new GpFlags(io___raw_flags, this, m_root); _compressionMethod = ((Zip.Compression)m_io.ReadU2le()); __raw_fileModTime = m_io.ReadBytes(4); var io___raw_fileModTime = new KaitaiStream(__raw_fileModTime); _fileModTime = new DosDatetime(io___raw_fileModTime); _crc32 = m_io.ReadU4le(); _lenBodyCompressed = m_io.ReadU4le(); _lenBodyUncompressed = m_io.ReadU4le(); _lenFileName = m_io.ReadU2le(); _lenExtra = m_io.ReadU2le(); _fileName = System.Text.Encoding.GetEncoding("UTF-8").GetString(m_io.ReadBytes(LenFileName)); __raw_extra = m_io.ReadBytes(LenExtra); var io___raw_extra = new KaitaiStream(__raw_extra); _extra = new Extras(io___raw_extra, this, m_root); }
public DosDatetime(KaitaiStream p__io, KaitaiStruct p__parent = null, DosDatetime p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }