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

template<class T>
unsigned int Buffer< T >::diffPostPos ( unsigned int const   postpos  )  const [inline]

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

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

Definition at line 229 of file buffer.h.

    {
      if(postpos >= currentpos)
      {
      return postpos - currentpos;
      }
      else
      {
      return postpos + size - currentpos;
      }
    }


Generated by  Doxygen 1.6.0   Back to index