Beispiel #1
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "RARC") || reader.CheckSignature(4, "CRAR"));
     }
 }
Beispiel #2
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "HBSS") && reader.CheckSignature(4, "RDHS", 16));
     }
 }
Beispiel #3
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true)) {
         return(reader.CheckSignature(3, "BCH") ||
                reader.CheckSignature(4, "CGFX"));
         // (GFPackage.IsValidPackage(stream));
     }
 }
Beispiel #4
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(8, "PACx301L") ||
                reader.CheckSignature(8, "PACx302L") ||
                reader.CheckSignature(8, "PACx402L"));
     }
 }
Beispiel #5
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         bool IsMEO1 = reader.CheckSignature(4, "ME01");
         IsSA01 = reader.CheckSignature(4, "SA01");
         return(IsMEO1 || IsSA01);
     }
 }
Beispiel #6
0
        public bool Identify(System.IO.Stream stream)
        {
            using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
            {
                bool IsForm   = reader.CheckSignature(4, "RFRM");
                bool FormType = reader.CheckSignature(4, "PACK", 20);

                return(IsForm && FormType);
            }
        }
Beispiel #7
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "ZAR\x01") ||
                reader.CheckSignature(4, "GAR\x02") ||
                reader.CheckSignature(4, "GAR\x03") ||
                reader.CheckSignature(4, "GAR\x04") ||
                reader.CheckSignature(4, "GAR\x05"));
     }
 }
Beispiel #8
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         if (reader.CheckSignature(4, "EFCF") ||
             reader.CheckSignature(4, "EFCC"))
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
Beispiel #9
0
        public bool Identify(System.IO.Stream stream)
        {
            if (stream.Length <= 24)
            {
                return(false);
            }

            using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
            {
                bool IsForm   = reader.CheckSignature(4, "RFRM");
                bool FormType = reader.CheckSignature(4, "MSBT", 20);

                return(IsForm && FormType);
            }
        }
Beispiel #10
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "FLIM", reader.BaseStream.Length - 0x28));
     }
 }
Beispiel #11
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(4, "VSCB", 12) || Utils.GetExtension(FileName) == ".bcsv");
     }
 }
Beispiel #12
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
     {
         return(reader.CheckSignature(3, "TRB") || Utils.HasExtension(FileName, ".trb"));
     }
 }
Beispiel #13
0
        public bool Identify(System.IO.Stream stream)
        {
            if (stream.Length < 68)
            {
                return(false);
            }

            using (var reader = new Toolbox.Library.IO.FileReader(stream, true)) {
                return(reader.CheckSignature(4, "IMET", 64));
            }
        }
Beispiel #14
0
        public bool Identify(System.IO.Stream stream)
        {
            using (var reader = new Toolbox.Library.IO.FileReader(stream, true))
            {
                //File too small to have any data
                if (stream.Length <= 8)
                {
                    return(false);
                }

                if (reader.CheckSignature(2, "BY") || reader.CheckSignature(2, "YB"))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
        }
Beispiel #15
0
 public bool Identify(System.IO.Stream stream)
 {
     using (var reader = new Toolbox.Library.IO.FileReader(stream, true)) {
         return(reader.CheckSignature(3, "Lua", 1));
     }
 }