Assets/Deps/emotitron/Network/NST/CompressedElement.cs
/// <summary>
/// Get the bit count of the highest bit that is different between two compressed positions. This is the min number of bits that must be sent.
/// </summary>
/// <returns></returns>
Get the bit count of the highest bit that is different between two compressed positions. This is the min number of bits that must be sent.
Get the bit count of the highest bit that is different between two compressed positions . This is the min number of bits that must be sent .
public static int HighestDifferentBit(uint a, uint b)
		{
			int highestDiffBit = 0;
			for (int i = 0; i < 32; i++)
				if (i.CompareBit(a, b) == false)
					highestDiffBit = i;
			return highestDiffBit;
		}
public static int HighestDifferentBit ( uint a , uint b ) { int highestDiffBit = 0 ; for ( int i = 0 ; i < 32 ; i ++ ) if ( i . CompareBit ( a , b ) == false ) highestDiffBit = i ; return highestDiffBit ; }
Get the bit count of the highest bit that is different between two compressed positions.
Get the bit count of the highest bit that is different between two compressed positions .
None
a
uint
b
uint