ucx/buffer.c

changeset 2
fbdfaacc4182
parent 0
2483f517c562
child 49
2f71f4ee247a
--- a/ucx/buffer.c	Mon Jan 22 17:27:47 2024 +0100
+++ b/ucx/buffer.c	Sat Jan 27 17:50:19 2024 +0100
@@ -135,6 +135,11 @@
     buffer->pos = 0;
 }
 
+void cxBufferReset(CxBuffer *buffer) {
+    buffer->size = 0;
+    buffer->pos = 0;
+}
+
 int cxBufferEof(CxBuffer const *buffer) {
     return buffer->pos >= buffer->size;
 }

mercurial