![]() |
![]() |
![]() |
/home/mob/svn/appWeb/1.2.3/mpr/buf.cpp File ReferenceDetailed DescriptionFast, growable buffer mechanism using a ring queue metaphore.This buffer implementation provides a growable buffer mechanism that strives for maximal usage of space. It is also designed to be as fast as possible. It is the callers responsibility to do thread synchronization. The internal interface is somewhat exposed to the caller via methods, but the design paradigm of ring buffers is very stable and not expected or even desired to change.
The buffer is empty if start == end. The buffer will thus hold at most buflen -1 bytes. If a pointer is incremented past the end of the buffer, we always wrap before returning.
|