From cf7b5043f42e87e560ef79fc8d72b78465df8685 Mon Sep 17 00:00:00 2001 From: AlexGyver Date: Wed, 29 Jan 2025 20:12:17 +0300 Subject: [PATCH] upd --- library.properties | 2 +- src/lbuf/lbuf_ext.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/library.properties b/library.properties index ee01cde..e236580 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=GTL -version=1.1.14 +version=1.1.15 author=AlexGyver maintainer=AlexGyver sentence=Library with template tools (buffers, pointers) diff --git a/src/lbuf/lbuf_ext.h b/src/lbuf/lbuf_ext.h index a60239e..089791d 100644 --- a/src/lbuf/lbuf_ext.h +++ b/src/lbuf/lbuf_ext.h @@ -49,6 +49,11 @@ class lbuf_ext { return _cap; } + // "очистить" буфер + void clear() { + _head = 0; + } + T* buffer = nullptr; private: