ME3LibWV.PCCPackage.isName C# (CSharp) Method

isName() public method

public isName ( int index ) : bool
index int
return bool
        public bool isName(int index)
        {
            return index >= 0 && index < Header.NameCount;
        }
        public string GetName(int index)

Usage Example

Beispiel #1
0
        public static int detectStart(PCCPackage pcc, byte[] raw, uint flags)
        {
            if ((flags & 0x02000000) != 0)
            {
                return(30);
            }
            int result = 8;
            int test1  = BitConverter.ToInt32(raw, 4);
            int test2  = BitConverter.ToInt32(raw, 8);

            if (pcc.isName(test1) && test2 == 0)
            {
                result = 4;
            }
            if (pcc.isName(test1) && pcc.isName(test2) && test2 != 0)
            {
                result = 8;
            }
            return(result);
        }
All Usage Examples Of ME3LibWV.PCCPackage::isName