示例#1
0
 private void ReadEocd()
 {
     _zipEocd = new ZipEocd();
     _br.BaseStream.Seek(_eocdPosition, SeekOrigin.Begin);
     _zipEocd.Signature           = _br.ReadBytes(4);
     _zipEocd.DiskNumber          = _br.ReadInt16();
     _zipEocd.CDDiskNumber        = _br.ReadInt16();
     _zipEocd.CDRecordNumber      = _br.ReadInt16();
     _zipEocd.CDTotalRecordNumber = _br.ReadInt16();
     _zipEocd.CDSize        = _br.ReadInt32();
     _zipEocd.CDOffset      = _br.ReadInt32();
     _zipEocd.CommentLength = _br.ReadInt16();
     _zipEocd.Signature     = _br.ReadBytes(_zipEocd.CommentLength);
 }
示例#2
0
 private void ReadEocd()
 {
     _zipEocd = new ZipEocd();
     _br.BaseStream.Seek(_eocdPosition, SeekOrigin.Begin);
     _zipEocd.Signature = _br.ReadBytes(4);
     _zipEocd.DiskNumber = _br.ReadInt16();
     _zipEocd.CDDiskNumber = _br.ReadInt16();
     _zipEocd.CDRecordNumber = _br.ReadInt16();
     _zipEocd.CDTotalRecordNumber = _br.ReadInt16();
     _zipEocd.CDSize = _br.ReadInt32();
     _zipEocd.CDOffset = _br.ReadInt32();
     _zipEocd.CommentLength = _br.ReadInt16();
     _zipEocd.Signature = _br.ReadBytes(_zipEocd.CommentLength);
 }