Пример #1
0
        public PacEntry(Pac archive, MixedString path, bool compressed, int decompressedSize, Stream fileStream, int fileOffset, int fileSize, bool cacheFromStream, bool keepCompressed)
        {
            Contract.Requires <ArgumentNullException>(archive != null);

            Archive = archive;
            Path    = path;
            SetFile(compressed, decompressedSize, fileStream, fileOffset, fileSize, cacheFromStream, keepCompressed);
        }
Пример #2
0
        public PacEntry(Pac archive, MixedString path, bool compressed, int decompressedSize, byte[] file, bool keepCompressed)
        {
            Contract.Requires <ArgumentNullException>(archive != null);

            Archive = archive;
            Path    = path;
            SetFile(compressed, decompressedSize, file, keepCompressed);
        }