private static IsValidPvrt ( byte source, int offset, int length ) : bool | ||
source | byte | Byte array containing the data. |
offset | int | The offset in the byte array to start at. |
length | int | The expected length of the PVR data minus the preceding header sizes. |
return | bool |
private static bool IsValidPvrt(byte[] source, int offset, int length)
{
return PTMethods.Contains(source, offset, pvrtFourCC)
&& source[offset + 0x09] < 0x60
&& BitConverter.ToUInt32(source, offset + 0x04) == length - 8;
}