src/buffer.c

changeset 761
61d5197d612b
parent 683
aa0d09f2d81c
child 890
54565fd74e74
equal deleted inserted replaced
760:52e49533e7b4 761:61d5197d612b
129 129
130 } 130 }
131 131
132 void cxBufferClear(CxBuffer *buffer) { 132 void cxBufferClear(CxBuffer *buffer) {
133 memset(buffer->bytes, 0, buffer->size); 133 memset(buffer->bytes, 0, buffer->size);
134 buffer->size = 0;
135 buffer->pos = 0;
136 }
137
138 void cxBufferReset(CxBuffer *buffer) {
134 buffer->size = 0; 139 buffer->size = 0;
135 buffer->pos = 0; 140 buffer->pos = 0;
136 } 141 }
137 142
138 int cxBufferEof(CxBuffer const *buffer) { 143 int cxBufferEof(CxBuffer const *buffer) {

mercurial