From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/pfc/grow_buf.cpp | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Src/pfc/grow_buf.cpp (limited to 'Src/pfc/grow_buf.cpp') diff --git a/Src/pfc/grow_buf.cpp b/Src/pfc/grow_buf.cpp new file mode 100644 index 00000000..627f70db --- /dev/null +++ b/Src/pfc/grow_buf.cpp @@ -0,0 +1,78 @@ +#include "pfc.h" + +void grow_buf::makespace(int new_size) +{ + if (!ptr || !size) + { + size = 1; + while(sizeused) {used = offset;write(data,bytes);} + else foo_memcpy((char*)ptr+offset,data,bytes); +} \ No newline at end of file -- cgit