Beispiel #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);
        }
Beispiel #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);
        }