summaryrefslogtreecommitdiff
path: root/ndb/include/util/UtilBuffer.hpp
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-05-26 10:56:32 +0200
committerunknown <joreland@mysql.com>2004-05-26 10:56:32 +0200
commit1a9eb476f185d94ec13ed4f13dbfbdb14f9217c1 (patch)
tree32b839686028c5bc61304dbd566705a3bc085f6d /ndb/include/util/UtilBuffer.hpp
parent3cfddc421d53e28f398a2db98002cab2be15fc9e (diff)
downloadmariadb-git-1a9eb476f185d94ec13ed4f13dbfbdb14f9217c1.tar.gz
WL1371 - Cleanup configuration handling
WL1356 - Discless db node WL1357 - sp 1-2
Diffstat (limited to 'ndb/include/util/UtilBuffer.hpp')
-rw-r--r--ndb/include/util/UtilBuffer.hpp9
1 files changed, 9 insertions, 0 deletions
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;