Beispiel #1
0
        public static bool IsAvailable()
        {
            try {
                AcdEncryption.CreateKey(null);
            } catch (NotImplementedException) {
                return(false);
            } catch (NullReferenceException) {
                return(true);
            }

            return(true);
        }
Beispiel #2
0
        public AcdReader(string filename, Stream input) : base(input)
        {
            _enc = AcdEncryption.FromAcdFilename(filename);

            if (ReadInt32() == -1111)
            {
                ReadInt32();
            }
            else
            {
                BaseStream.Seek(0, SeekOrigin.Begin);
            }
        }
Beispiel #3
0
 public AcdWriter(string filename) : this(File.Open(filename, FileMode.CreateNew)) {
     _enc = AcdEncryption.FromAcdFilename(filename);
 }
Beispiel #4
0
 public AcdReader(string filename) : this(File.Open(filename, FileMode.Open, FileAccess.Read, FileShare.Read)) {
     _enc = AcdEncryption.FromAcdFilename(filename);
 }
Beispiel #5
0
 public AcdWriter([NotNull] string filename, [NotNull] Stream output) : base(output)
 {
     _enc = AcdEncryption.FromAcdFilename(filename);
 }