#include <ZStrimR_Boundary.h>
Inheritance diagram for ZStrimR_Boundary:
Public Member Functions | |
bool | HitBoundary () const |
void | Reset () |
We use Boyer-Moore to efficiently search for the boundary sequence in the source strim. However, instead of discarding data that fails to match it is returned as the result of calls to Imp_ReadUTF32.
bool ZStrimR_Boundary::HitBoundary | ( | ) | const |
This method distinguishes between a strim that's gone empty because the boundary was encountered and one that's gone empty because the source strim is empty.
void ZStrimR_Boundary::Reset | ( | ) |
After the boundary has been encountered the strim appears empty. Calling ZStrimR_Boundary::Reset will allow data to be read again until the next boundary or the real end of strim.