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.

postpos the given position.
the range size.

Definition at line 229 of file Buffer.H.

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

Generated by  Doxygen 1.6.0   Back to index