aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/blobbuilder.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/blobbuilder.h19
1 files changed, 17 insertions, 2 deletions
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
26 Chunk(); 26 Chunk();
27 ~Chunk(); 27 ~Chunk();
28 28
29 int16_t iFill; 29 int32_t iLength;
30 int16_t iLength;
31 char *pData; 30 char *pData;
32 Chunk *pNext; 31 Chunk *pNext;
33 }; 32 };
@@ -51,9 +50,25 @@ namespace Bu
51 50
52 public: 51 public:
53 BlobBuilder(); 52 BlobBuilder();
53 BlobBuilder( const Blob &rSrc );
54 BlobBuilder( const BlobBuilder &rSrc ); 54 BlobBuilder( const BlobBuilder &rSrc );
55 virtual ~BlobBuilder(); 55 virtual ~BlobBuilder();
56 56
57 void set( const Blob &rSrc );
58 void set( const char *pSrc, int32_t iLength );
59 void append( const Blob &rSrc );
60 void append( const char *pSrc, int32_t iLength );
61 void prepend( const Blob &rSrc );
62 void prepend( const char *pSrc, int32_t iLength );
63 void insert( int32_t iBefore, const Blob &rSrc );
64 void insert( int32_t iBefore, const char *pSrc, const Blob &rSrc );
65 void clear();
66 int32_t getSize() const;
67
68 BlobBuilder &operator=( const Blob &rSrc );
69 BlobBuilder &operator=( const char *pSrc );
70 BlobBuilder &operator+=( const Blob &rSrc );
71 BlobBuilder &operator+=( const char *pSrc );
57 private: 72 private:
58 }; 73 };
59}; 74};