示例#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"));
     }
 }
示例#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));
     }
 }
示例#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));
     }
 }
示例#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"));
     }
 }
示例#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);
     }
 }
示例#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);
            }
        }
示例#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"));
     }
 }
示例#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);
         }
     }
 }
示例#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);
            }
        }
示例#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));
     }
 }
示例#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");
     }
 }
示例#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"));
     }
 }
示例#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));
            }
        }
示例#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);
                }
            }
        }
示例#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));
     }
 }