Ejemplo n.º 1
0
 public static bool IsSerializedFile(Stream stream)
 {
     using (EndianReader reader = new EndianReader(stream, EndianType.BigEndian))
     {
         return(SerializedFileHeader.IsSerializedFileHeader(reader, (uint)stream.Length));
     }
 }
Ejemplo n.º 2
0
 public static bool IsSerializedFile(Stream stream, long offset, long size)
 {
     using (PartialStream bundleStream = new PartialStream(stream, offset, size))
     {
         using (EndianReader reader = new EndianReader(bundleStream, EndianType.BigEndian))
         {
             return(SerializedFileHeader.IsSerializedFileHeader(reader, (uint)size));
         }
     }
 }