This makes code easier to read, and somewhat more correct.
Gbp-Dch: ignore
const char *get() const { return buffer + bufferstart; }
char *get() { return buffer + bufferstart; }
const char *get() const { return buffer + bufferstart; }
char *get() { return buffer + bufferstart; }
+ const char *getend() const { return buffer + bufferend; }
+ char *getend() { return buffer + bufferend; }
bool empty() const { return bufferend <= bufferstart; }
bool full() const { return bufferend == buffersize_max; }
bool empty() const { return bufferend <= bufferstart; }
bool full() const { return bufferend == buffersize_max; }
+ unsigned long long free() const { return buffersize_max - bufferend; }
unsigned long long size() const { return bufferend-bufferstart; }
void reset(size_t size)
{
unsigned long long size() const { return bufferend-bufferstart; }
void reset(size_t size)
{