示例#1
0
        public DiskStream(TarFile archive, long length, string dir)
        {
            _archive = archive;
            _length  = length;
            _dir     = dir;

            if (!archive.DirExists(_dir))
            {
                throw new IOException("No such disk");
            }

            ReadChunkSkipList();
        }
示例#2
0
        public DiskStream(TarFile archive, long length, string dir)
        {
            _archive = archive;
            _length = length;
            _dir = dir;

            if (!archive.DirExists(_dir))
            {
                throw new IOException("No such disk");
            }

            int numChunks = (int)((length + Sizes.OneMiB - 1) / Sizes.OneMiB);
        }
示例#3
0
        public DiskStream(TarFile archive, long length, string dir)
        {
            _archive = archive;
            _length  = length;
            _dir     = dir;

            if (!archive.DirExists(_dir))
            {
                throw new IOException("No such disk");
            }

            int numChunks = (int)((length + Sizes.OneMiB - 1) / Sizes.OneMiB);
        }
示例#4
0
        public DiskStream(TarFile archive, long length, string dir)
        {
            _archive = archive;
            _length = length;
            _dir = dir;

            if (!archive.DirExists(_dir))
            {
                throw new IOException("No such disk");
            }

            ReadChunkSkipList();
        }