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