Logo Search packages:      
Sourcecode: lttoolbox version File versions

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.

prevpos the given position.
the range size.

Definition at line 211 of file Buffer.H.

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

Generated by  Doxygen 1.6.0   Back to index