aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/blobbuilder.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2019-08-08 09:59:52 -0700
committerMike Buland <eichlan@xagasoft.com>2019-08-08 09:59:52 -0700
commit238244337283a7f888cf49a1e56b809c22466a63 (patch)
tree5262c5bfed957edc0906c002e0e94bbc88154d08 /src/unstable/blobbuilder.h
parentaf4bc8816eb4b4cb4821b24706f55b518a43968d (diff)
downloadlibbu++-238244337283a7f888cf49a1e56b809c22466a63.tar.gz
libbu++-238244337283a7f888cf49a1e56b809c22466a63.tar.bz2
libbu++-238244337283a7f888cf49a1e56b809c22466a63.tar.xz
libbu++-238244337283a7f888cf49a1e56b809c22466a63.zip
Fixed a bug in the BlobBuilder.
Appending wasn't working correctly.
Diffstat (limited to 'src/unstable/blobbuilder.h')
-rw-r--r--src/unstable/blobbuilder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unstable/blobbuilder.h b/src/unstable/blobbuilder.h
index 744212a..c343a4f 100644
--- a/src/unstable/blobbuilder.h
+++ b/src/unstable/blobbuilder.h
@@ -53,7 +53,8 @@ namespace Bu
53 void prepend( const char *pSrc, int32_t iLength ); 53 void prepend( const char *pSrc, int32_t iLength );
54 void insert( int32_t iBefore, const char *pSrc, int32_t iLength ); 54 void insert( int32_t iBefore, const char *pSrc, int32_t iLength );
55 void set( const char *pSrc, int32_t iLength ); 55 void set( const char *pSrc, int32_t iLength );
56 void copyTo( void *pDestRaw, int32_t iLength ) const; 56 void copyTo( void *pDestRaw, int32_t iLength ) const;
57 char getAt( int32_t iIndex ) const;
57 58
58 Chunk *pFirst; 59 Chunk *pFirst;
59 Chunk *pLast; 60 Chunk *pLast;
@@ -110,11 +111,14 @@ namespace Bu
110 int32_t getSize() const; 111 int32_t getSize() const;
111 Blob getBlob() const; 112 Blob getBlob() const;
112 void copyTo( void *pDestRaw, int32_t iDestSize ) const; 113 void copyTo( void *pDestRaw, int32_t iDestSize ) const;
114 char operator[]( int32_t iIndex ) const;
113 115
114 BlobBuilder &operator=( const Blob &rSrc ); 116 BlobBuilder &operator=( const Blob &rSrc );
115 BlobBuilder &operator=( const char *pSrc ); 117 BlobBuilder &operator=( const char *pSrc );
118 BlobBuilder &operator=( const char chr );
116 BlobBuilder &operator+=( const Blob &rSrc ); 119 BlobBuilder &operator+=( const Blob &rSrc );
117 BlobBuilder &operator+=( const char *pSrc ); 120 BlobBuilder &operator+=( const char *pSrc );
121 BlobBuilder &operator+=( const char chr );
118 private: 122 private:
119 }; 123 };
120}; 124};