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) { |