Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

template<class T>
unsigned int Buffer< T >::diffPrevPos ( unsigned int const   prevpos  )  const [inline]

Return the range size between the buffer current position and a outside stored given position that is previous to the current.

Parameters:
prevpos the given position.
Returns:
the range size.

Definition at line 211 of file Buffer.H.

    {
      if(prevpos <= currentpos)
      {
      return currentpos - prevpos;
      }
      else
      {
      return currentpos + size - prevpos;
      }
    } 


Generated by  Doxygen 1.6.0   Back to index