A generator class with a buffer. This allows multiple inspections of the stream issued by a generator. For example this is used by MaxMunchGen.
A generator class with a buffer.
Yield objects from the generator via the buffer.
Returns the length of the existing buffer. NOTE: This may not be the final length as the generator might not be exhausted just yet.
Replaces within the buffer starting at theIdx removing theLen objects and replacing them with theValueS.
Returns a buffer slice of length sliceLen.
Exception specialisation for BufGen.