From 806d0475416558a64dc2bacd253b7406bdea29a7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 27 May 2019 21:02:35 -0700 Subject: Blob builder laid out a bit more. --- src/unstable/blobbuilder.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/unstable') diff --git a/src/unstable/blobbuilder.h b/src/unstable/blobbuilder.h index 8cc2a24..817a990 100644 --- a/src/unstable/blobbuilder.h +++ b/src/unstable/blobbuilder.h @@ -26,8 +26,7 @@ namespace Bu Chunk(); ~Chunk(); - int16_t iFill; - int16_t iLength; + int32_t iLength; char *pData; Chunk *pNext; }; @@ -51,9 +50,25 @@ namespace Bu public: BlobBuilder(); + BlobBuilder( const Blob &rSrc ); BlobBuilder( const BlobBuilder &rSrc ); virtual ~BlobBuilder(); + void set( const Blob &rSrc ); + void set( const char *pSrc, int32_t iLength ); + void append( const Blob &rSrc ); + void append( const char *pSrc, int32_t iLength ); + void prepend( const Blob &rSrc ); + void prepend( const char *pSrc, int32_t iLength ); + void insert( int32_t iBefore, const Blob &rSrc ); + void insert( int32_t iBefore, const char *pSrc, const Blob &rSrc ); + void clear(); + int32_t getSize() const; + + BlobBuilder &operator=( const Blob &rSrc ); + BlobBuilder &operator=( const char *pSrc ); + BlobBuilder &operator+=( const Blob &rSrc ); + BlobBuilder &operator+=( const char *pSrc ); private: }; }; -- cgit v1.2.3