From 1a9eb476f185d94ec13ed4f13dbfbdb14f9217c1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 May 2004 10:56:32 +0200 Subject: WL1371 - Cleanup configuration handling WL1356 - Discless db node WL1357 - sp 1-2 --- ndb/include/util/UtilBuffer.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ndb/include/util/UtilBuffer.hpp') diff --git a/ndb/include/util/UtilBuffer.hpp b/ndb/include/util/UtilBuffer.hpp index b357fa0fdf2..f43fc960a16 100644 --- a/ndb/include/util/UtilBuffer.hpp +++ b/ndb/include/util/UtilBuffer.hpp @@ -63,6 +63,15 @@ public: return 0; }; + void * append(size_t l){ + if(grow(len+l) != 0) + return 0; + + void * ret = (char*)data+len; + len += l; + return ret; + } + int assign(const void * d, size_t l) { if (data) free(data); data = NULL; -- cgit v1.2.1