3 instantiations of ZipArchiveEntry
System.IO.Compression (3)
System\IO\Compression\ZipArchive.cs (3)
393new ZipArchiveEntry(this, entryName, compressionLevel.Value) : 394new ZipArchiveEntry(this, entryName); 512AddEntry(new ZipArchiveEntry(this, currentHeader));
124 references to ZipArchiveEntry
BuildBoss (1)
OptProfCheckerUtil.cs (1)
103var entry = archive.GetEntry("manifest.json");
Microsoft.Arcade.Common (2)
NupkgInfoFactory.cs (1)
33foreach (ZipArchiveEntry entry in zipArchive.Entries)
ZipArchiveManager.cs (1)
55ZipArchiveEntry entry = archive.CreateEntry(targetFilename);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
101var entry = archive.GetEntry("manifest.json");
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
OptProf\GenerateTrainingInputFilesTests.cs (1)
124var entry = archive.CreateEntry("manifest.json");
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
129foreach (ZipArchiveEntry entry in zipArchive.Entries)
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
277foreach (ZipArchiveEntry entry in archive.Entries)
Microsoft.DotNet.SignCheckLibrary (8)
Verification\Jar\JarFile.cs (4)
180IEnumerable<ZipArchiveEntry> signatureFileEntries = from entry in archive.Entries 186foreach (ZipArchiveEntry file in signatureFileEntries) 192ZipArchiveEntry rsaEntry = archive.GetEntry(rsaFilename); 193ZipArchiveEntry dsaEntry = archive.GetEntry(dsaFilename);
Verification\Jar\JarManifestFile.cs (1)
47private bool Verify(JarIndividualEntry entry, ZipArchiveEntry archiveEntry)
Verification\Jar\JarManifestFileBase.cs (1)
95ZipArchiveEntry manifestArchiveEntry = archive.Entries.First(a => String.Equals(a.FullName, ManifestPath, StringComparison.OrdinalIgnoreCase));
Verification\Jar\JarUtils.cs (1)
27ZipArchiveEntry entry = archive.GetEntry(path);
Verification\ZipVerifier.cs (1)
25foreach (var entry in archive.Entries)
Microsoft.DotNet.SignTool (3)
src\ZipData.cs (2)
197foreach (var entry in archive.Entries) 212foreach (ZipArchiveEntry entry in archive.Entries)
src\ZipDataEntry.cs (1)
45public ZipDataEntry(ZipArchiveEntry entry)
Microsoft.ML.Core (5)
Data\Repository.cs (5)
396var ae = _archive.CreateEntry(kvp.Key); 448private readonly Dictionary<string, ZipArchiveEntry> _entries; 469_entries = new Dictionary<string, ZipArchiveEntry>(); 470foreach (var entry in _archive.Entries) 507ZipArchiveEntry entry;
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
64var versionPath = archive.Entries.First(x => x.FullName == versionFileName);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
1060var entry = zip.Entries.First(source => source.Name == "word_topic_summary-Result.txt");
netstandard (1)
netstandard.cs (1)
896[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Compression.ZipArchiveEntry))]
System.IO.Compression (53)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (3)
23internal DeflateManagedStream(Stream stream, ZipArchiveEntry.CompressionMethodValues method, long uncompressedSize = -1) 30Debug.Assert(method == ZipArchiveEntry.CompressionMethodValues.Deflate64); 32_inflater = new InflaterManaged(method == ZipArchiveEntry.CompressionMethodValues.Deflate64, uncompressedSize);
System\IO\Compression\ZipArchive.Async.cs (5)
107foreach (ZipArchiveEntry entry in zipArchive._entries) 318List<ZipArchiveEntry> entriesToWrite = _entries; 329foreach (ZipArchiveEntry entry in _entries) 360foreach (ZipArchiveEntry entry in entriesToWrite) 374foreach (ZipArchiveEntry entry in _entries)
System\IO\Compression\ZipArchive.cs (27)
19private ZipArchiveEntry? _archiveStreamOwner; 21private readonly List<ZipArchiveEntry> _entries; 22private readonly ReadOnlyCollection<ZipArchiveEntry> _entriesCollection; 23private readonly Dictionary<string, ZipArchiveEntry> _entriesDictionary; 162foreach (ZipArchiveEntry entry in _entries) 188_entries = new List<ZipArchiveEntry>(); 189_entriesCollection = new ReadOnlyCollection<ZipArchiveEntry>(_entries); 190_entriesDictionary = new Dictionary<string, ZipArchiveEntry>(); 225public ReadOnlyCollection<ZipArchiveEntry> Entries 265public ZipArchiveEntry CreateEntry(string entryName) 280public ZipArchiveEntry CreateEntry(string entryName, CompressionLevel compressionLevel) 330public ZipArchiveEntry? GetEntry(string entryName) 338_entriesDictionary.TryGetValue(entryName, out ZipArchiveEntry? result); 382private ZipArchiveEntry DoCreateEntry(string entryName, CompressionLevel? compressionLevel) 392ZipArchiveEntry entry = compressionLevel.HasValue ? 401internal void AcquireArchiveStream(ZipArchiveEntry entry) 419private void AddEntry(ZipArchiveEntry entry) 426internal void DebugAssertIsStillArchiveStreamOwner(ZipArchiveEntry entry) => Debug.Assert(_archiveStreamOwner == entry); 428internal void ReleaseArchiveStream(ZipArchiveEntry entry) 435internal void RemoveEntry(ZipArchiveEntry entry) 547_entries.Sort(ZipArchiveEntry.LocalHeaderOffsetComparer.Instance); 710private static void WriteFileCalculateOffsets(ZipArchiveEntry entry, ref long startingOffset, ref long nextFileOffset) 725private static void WriteFileCheckStartingOffset(ZipArchiveEntry entry, ref long completeRewriteStartingOffset) 766List<ZipArchiveEntry> entriesToWrite = _entries; 777foreach (ZipArchiveEntry entry in _entries) 807foreach (ZipArchiveEntry entry in entriesToWrite) 821foreach (ZipArchiveEntry entry in _entries)
System\IO\Compression\ZipArchiveEntry.cs (8)
733(long initialPosition, long currentPosition, uint checkSum, Stream backing, ZipArchiveEntry thisRef, EventHandler? closeHandler) => 794var entry = (ZipArchiveEntry)o!; 1385private readonly ZipArchiveEntry _entry; 1391public DirectToArchiveWriterStream(CheckSumAndSizeWriteStream crcSizeStream, ZipArchiveEntry entry) 1630internal sealed class LocalHeaderOffsetComparer : Comparer<ZipArchiveEntry> 1637public override int Compare(ZipArchiveEntry? x, ZipArchiveEntry? y)
System\IO\Compression\ZipCustomStreams.cs (10)
17private readonly Action<ZipArchiveEntry?>? _onClosed; 20private readonly ZipArchiveEntry? _zipArchiveEntry; 26private WrappedStream(Stream baseStream, bool closeBaseStream, ZipArchiveEntry? entry, Action<ZipArchiveEntry?>? onClosed) 35internal WrappedStream(Stream baseStream, ZipArchiveEntry entry, Action<ZipArchiveEntry?>? onClosed) 418private readonly ZipArchiveEntry _zipArchiveEntry; 422private readonly Action<long, long, uint, Stream, ZipArchiveEntry, EventHandler?> _saveCrcAndSizes; 432ZipArchiveEntry entry, EventHandler? onClose, 433Action<long, long, uint, Stream, ZipArchiveEntry, EventHandler?> saveCrcAndSizes)
System.IO.Compression.ZipFile (23)
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (4)
46public static Task<ZipArchiveEntry> CreateEntryFromFileAsync(this ZipArchive destination, string sourceFileName, string entryName, CancellationToken cancellationToken = default) => 79public static Task<ZipArchiveEntry> CreateEntryFromFileAsync(this ZipArchive destination, 83internal static async Task<ZipArchiveEntry> DoCreateEntryFromFileAsync(this ZipArchive destination, string sourceFileName, string entryName, 88(FileStream fs, ZipArchiveEntry entry) = InitializeDoCreateEntryFromFile(destination, sourceFileName, entryName, compressionLevel, useAsync: true);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (7)
44public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, string sourceFileName, string entryName) => 76public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, 80internal static ZipArchiveEntry DoCreateEntryFromFile(this ZipArchive destination, 83(FileStream fs, ZipArchiveEntry entry) = InitializeDoCreateEntryFromFile(destination, sourceFileName, entryName, compressionLevel, useAsync: true); 96private static (FileStream, ZipArchiveEntry) InitializeDoCreateEntryFromFile(ZipArchive destination, string sourceFileName, string entryName, CompressionLevel? compressionLevel, bool useAsync) 109ZipArchiveEntry entry = compressionLevel.HasValue ? 128static partial void SetExternalAttributes(FileStream fs, ZipArchiveEntry entry);
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Unix.cs (1)
12static partial void SetExternalAttributes(FileStream fs, ZipArchiveEntry entry)
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (1)
78foreach (ZipArchiveEntry entry in source.Entries)
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (1)
71foreach (ZipArchiveEntry entry in source.Entries)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (3)
37public static Task ExtractToFileAsync(this ZipArchiveEntry source, string destinationFileName, CancellationToken cancellationToken = default) => 68public static async Task ExtractToFileAsync(this ZipArchiveEntry source, string destinationFileName, bool overwrite, CancellationToken cancellationToken = default) 87internal static async Task ExtractRelativeToDirectoryAsync(this ZipArchiveEntry source, string destinationDirectoryName, bool overwrite, CancellationToken cancellationToken = default)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (6)
33public static void ExtractToFile(this ZipArchiveEntry source, string destinationFileName) => 63public static void ExtractToFile(this ZipArchiveEntry source, string destinationFileName, bool overwrite) 76private static void ExtractToFileInitialize(ZipArchiveEntry source, string destinationFileName, bool overwrite, out FileStreamOptions fileStreamOptions) 105private static void ExtractToFileFinalize(ZipArchiveEntry source, string destinationFileName) => 108private static bool ExtractRelativeToDirectoryCheckIfFile(ZipArchiveEntry source, string destinationDirectoryName, out string fileDestinationPath) 140internal static void ExtractRelativeToDirectory(this ZipArchiveEntry source, string destinationDirectoryName, bool overwrite)
System.IO.Packaging (22)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
410ZipArchiveEntry firstPieceInfo = _sortedPieceInfoList[0].ZipArchiveEntry;
System\IO\Packaging\ZipPackage.cs (11)
62ZipArchiveEntry zipArchiveEntry = _zipArchive.CreateEntry(zipItemName, level); 114ZipArchiveEntry? zipArchiveEntry = _zipArchive.GetEntry(partZipName); 181System.Collections.ObjectModel.ReadOnlyCollection<ZipArchiveEntry> zipArchiveEntries = _zipArchive.Entries; 187foreach (ZipArchiveEntry zipArchiveEntry in zipArchiveEntries) 953private void ParseContentTypesFile(System.Collections.ObjectModel.ReadOnlyCollection<ZipArchiveEntry> zipFiles) 1045private Stream? OpenContentTypeStream(System.Collections.ObjectModel.ReadOnlyCollection<ZipArchiveEntry> zipFiles) 1048SortedDictionary<ZipPackagePartPiece, ZipArchiveEntry>? contentTypeStreamPieces = null; 1050foreach (ZipArchiveEntry zipFileInfo in zipFiles) 1063contentTypeStreamPieces ??= new SortedDictionary<ZipPackagePartPiece, ZipArchiveEntry>(); 1300private ZipArchiveEntry? _contentTypeZipArchiveEntry; 1443ZipArchiveEntry? entry = _zipArchive.GetEntry(zipFileInfoName);
System\IO\Packaging\ZipPackagePart.cs (3)
62ZipArchiveEntry zipArchiveEntry, 107internal ZipArchiveEntry? ZipArchiveEntry => _zipArchiveEntry; 114private readonly ZipArchiveEntry? _zipArchiveEntry;
System\IO\Packaging\ZipPackagePartPiece.cs (4)
25internal static bool TryParse(ZipArchiveEntry zipArchiveEntry, [NotNullWhen(true)] out ZipPackagePartPiece? partPiece) 146ZipArchiveEntry newPieceEntry = zipArchive.CreateEntry(newPieceFileName); 151internal ZipPackagePartPiece(ZipArchiveEntry zipArchiveEntry, PackUriHelper.ValidatedPartUri? partUri, string prefixName, int pieceNumber, bool isLastPiece) 181internal ZipArchiveEntry ZipArchiveEntry { get; }
System\IO\Packaging\ZipStreamManager.cs (1)
25public Stream Open(ZipArchiveEntry zipArchiveEntry, FileAccess streamFileAccess)
System\IO\Packaging\ZipWrappingStream.cs (2)
16private readonly ZipArchiveEntry _zipArchiveEntry; 22public ZipWrappingStream(ZipArchiveEntry zipArchiveEntry, Stream stream, FileMode packageFileMode, FileAccess packageFileAccess, bool canRead, bool canWrite)