VrSharp.PvrTexture.PvrTexture.IsValidPvrt C# (CSharp) 메소드

IsValidPvrt() 개인적인 정적인 메소드

Checks for the PVRT header and validates it.

See also: IsValidGbix

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.
리턴 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;
        }