Assets/Deps/emotitron/Network/NST/NSTFrameBuffer.cs
/// <summary>
/// Checks ENTIRE buffer for the oldest arriving frame. Used for the starting up.
/// </summary>
/// <returns>Returns null if no valid frames are found.</returns>
Checks ENTIRE buffer for the oldest arriving frame. Used for the starting up.
Checks ENTIRE buffer for the oldest arriving frame . Used for the starting up .
public Frame GetOldestValidFrame()
		{
			if (validFrameMask <= 1)
				return null;
			float timetobeat = Time.time;
			int winnerwinnerchickendinner = 0;
			for (int i = 1; i < bufferSize; i++)
			{
				if (GetBitInValidFrameMask(i) && frames[i].packetArriveTime < timetobeat )
				{
					winnerwinnerchickendinner = i;
					timetobeat = frames[i].packetArriveTime;
				}
			}
			return frames[winnerwinnerchickendinner];
		}
public Frame GetOldestValidFrame ( ) { if ( validFrameMask <= 1 ) return null ; float timetobeat = Time . time ; int winnerwinnerchickendinner = 0 ; for ( int i = 1 ; i < bufferSize ; i ++ ) { if ( GetBitInValidFrameMask ( i ) && frames [ i ] . packetArriveTime < timetobeat ) { winnerwinnerchickendinner = i ; timetobeat = frames [ i ] . packetArriveTime ; } } return frames [ winnerwinnerchickendinner ] ; }
Checks ENTIRE buffer for the oldest arriving frame.
Checks ENTIRE buffer for the oldest arriving frame .
// First look forward //Frame testframe = IncrementFrame(CurrentIndex, i);
Returns null if no valid frames are found.
Returns null if no valid frames are found .