public static bool IsBundleFile(Stream stream) { using (EndianReader reader = new EndianReader(stream, EndianType.BigEndian)) { return(BundleHeader.IsBundleHeader(reader)); } }
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)); } } }