Crisis.Ionic.Zip.ZipEntry.ProcessExtraFieldInfoZipTimes C# (CSharp) Method

ProcessExtraFieldInfoZipTimes() private method

private ProcessExtraFieldInfoZipTimes ( byte buffer, int j, Int16 dataSize, long posn ) : int
buffer byte
j int
dataSize System.Int16
posn long
return int
        private int ProcessExtraFieldInfoZipTimes(byte[] buffer, int j, Int16 dataSize, long posn)
        {
            if (dataSize != 12 && dataSize != 8)
                throw new BadReadException(String.Format("  Unexpected size (0x{0:X4}) for InfoZip v1 extra field at position 0x{1:X16}", dataSize, posn));

            Int32 timet = BitConverter.ToInt32(buffer, j);
            this._Mtime = _unixEpoch.AddSeconds(timet);
            j += 4;

            timet = BitConverter.ToInt32(buffer, j);
            this._Atime = _unixEpoch.AddSeconds(timet);
            j += 4;

            this._Ctime = DateTime.UtcNow;

            _ntfsTimesAreSet = true;
            _timestamp |= ZipEntryTimestamp.InfoZip1; return j;
        }
ZipEntry