コード例 #1
0
ファイル: TarEntry.cs プロジェクト: RainsSoft/sharpcompress
 internal TarEntry(TarFilePart filePart, SharpCompress.Common.CompressionType type)
 {
     this.filePart = filePart;
     this.type = type;
 }
コード例 #2
0
 internal TarEntry(TarFilePart filePart, SharpCompress.Common.CompressionType type)
 {
     this.filePart = filePart;
     this.type     = type;
 }
コード例 #3
0
        internal static IEnumerable <TarEntry> GetEntries(StreamingMode mode, Stream stream, SharpCompress.Common.CompressionType compressionType)
        {
            foreach (TarHeader iteratorVariable0 in TarHeaderFactory.ReadHeader(mode, stream))
            {
                if (iteratorVariable0 == null)
                {
                    continue;
                }
                if (mode == StreamingMode.Seekable)
                {
                    yield return(new TarEntry(new TarFilePart(iteratorVariable0, stream), compressionType));

                    continue;
                }
                yield return(new TarEntry(new TarFilePart(iteratorVariable0, null), compressionType));
            }
        }
コード例 #4
0
 internal static IEnumerable <TarEntry> GetEntries(StreamingMode mode, Stream stream, SharpCompress.Common.CompressionType compressionType) =>