Пример #1
0
 public static bool IsBundleFile(Stream stream)
 {
     using (EndianReader reader = new EndianReader(stream, EndianType.BigEndian))
     {
         return(BundleHeader.IsBundleHeader(reader));
     }
 }
Пример #2
0
 public static bool IsBundleFile(Stream stream, long offset, long size)
 {
     using (PartialStream bundleStream = new PartialStream(stream, offset, size))
     {
         using (EndianReader reader = new EndianReader(bundleStream, EndianType.BigEndian))
         {
             return(BundleHeader.IsBundleHeader(reader));
         }
     }
 }