src/buffer.c

changeset 1004
d8044fd5005c
parent 991
ec49db06dae0
child 1005
67fa386ce600
equal deleted inserted replaced
1003:455afb252878 1004:d8044fd5005c
141 void cxBufferReset(CxBuffer *buffer) { 141 void cxBufferReset(CxBuffer *buffer) {
142 buffer->size = 0; 142 buffer->size = 0;
143 buffer->pos = 0; 143 buffer->pos = 0;
144 } 144 }
145 145
146 int cxBufferEof(const CxBuffer *buffer) { 146 bool cxBufferEof(const CxBuffer *buffer) {
147 return buffer->pos >= buffer->size; 147 return buffer->pos >= buffer->size;
148 } 148 }
149 149
150 int cxBufferMinimumCapacity( 150 int cxBufferMinimumCapacity(
151 CxBuffer *buffer, 151 CxBuffer *buffer,

mercurial