aboutsummaryrefslogtreecommitdiff
path: root/src/unstable
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-08-10 00:04:24 -0700
committerMike Buland <eichlan@xagasoft.com>2023-08-10 00:04:24 -0700
commit153b34e490032d22fa71a7125fb78a120f9f848d (patch)
tree54e86cc15545413eec3ef58d8997205d1d050021 /src/unstable
parent0e965ecb16368be3a4b500ffb16fa605e773d7b7 (diff)
downloadlibbu++-153b34e490032d22fa71a7125fb78a120f9f848d.tar.gz
libbu++-153b34e490032d22fa71a7125fb78a120f9f848d.tar.bz2
libbu++-153b34e490032d22fa71a7125fb78a120f9f848d.tar.xz
libbu++-153b34e490032d22fa71a7125fb78a120f9f848d.zip
Added some handy operators to Bu::BlobBuilder
Diffstat (limited to '')
-rw-r--r--src/unstable/blobbuilder.cpp18
-rw-r--r--src/unstable/blobbuilder.h3
2 files changed, 21 insertions, 0 deletions
diff --git a/src/unstable/blobbuilder.cpp b/src/unstable/blobbuilder.cpp
index 901c72e..3c55e3c 100644
--- a/src/unstable/blobbuilder.cpp
+++ b/src/unstable/blobbuilder.cpp
@@ -396,3 +396,21 @@ Bu::BlobBuilder &Bu::BlobBuilder::operator+=( const char chr )
396 return *this; 396 return *this;
397} 397}
398 398
399Bu::BlobBuilder &Bu::BlobBuilder::operator<<( const Blob &rSrc )
400{
401 append( rSrc );
402 return *this;
403}
404
405Bu::BlobBuilder &Bu::BlobBuilder::operator<<( const char *pSrc )
406{
407 append( pSrc );
408 return *this;
409}
410
411Bu::BlobBuilder &Bu::BlobBuilder::operator<<( const char chr )
412{
413 append( chr );
414 return *this;
415}
416
diff --git a/src/unstable/blobbuilder.h b/src/unstable/blobbuilder.h
index 7ad4255..fd368fa 100644
--- a/src/unstable/blobbuilder.h
+++ b/src/unstable/blobbuilder.h
@@ -120,6 +120,9 @@ namespace Bu
120 BlobBuilder &operator+=( const Blob &rSrc ); 120 BlobBuilder &operator+=( const Blob &rSrc );
121 BlobBuilder &operator+=( const char *pSrc ); 121 BlobBuilder &operator+=( const char *pSrc );
122 BlobBuilder &operator+=( const char chr ); 122 BlobBuilder &operator+=( const char chr );
123 BlobBuilder &operator<<( const Blob &rSrc );
124 BlobBuilder &operator<<( const char *pSrc );
125 BlobBuilder &operator<<( const char chr );
123 private: 126 private:
124 }; 127 };
125}; 128};