diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-08-09 13:00:19 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-08-09 13:00:19 -0700 |
commit | 9fc845c1746a83afc4e847895913851576945000 (patch) | |
tree | ab2071248b8ed1fa6660e78500bb2deaddc9741b /src/unstable/blob.h | |
parent | c7e1277ecaf40c6d8ee945418a306f5b15189b97 (diff) | |
download | libbu++-9fc845c1746a83afc4e847895913851576945000.tar.gz libbu++-9fc845c1746a83afc4e847895913851576945000.tar.bz2 libbu++-9fc845c1746a83afc4e847895913851576945000.tar.xz libbu++-9fc845c1746a83afc4e847895913851576945000.zip |
Added a temporory String -> Blob constructor.
Just to ease the transition.
Diffstat (limited to '')
-rw-r--r-- | src/unstable/blob.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unstable/blob.h b/src/unstable/blob.h index 2866ab2..2a665ad 100644 --- a/src/unstable/blob.h +++ b/src/unstable/blob.h | |||
@@ -46,10 +46,14 @@ namespace Bu | |||
46 | Blob( int32_t iSize ); | 46 | Blob( int32_t iSize ); |
47 | Blob( const const_iterator &iStart ); | 47 | Blob( const const_iterator &iStart ); |
48 | Blob( const const_iterator &iStart, const const_iterator &iEnd ); | 48 | Blob( const const_iterator &iStart, const const_iterator &iEnd ); |
49 | |||
50 | // Obviously temporary | ||
51 | Blob( const Bu::String &rSrc ); | ||
49 | virtual ~Blob(); | 52 | virtual ~Blob(); |
50 | 53 | ||
51 | void setSize( int32_t iSize ); | 54 | void setSize( int32_t iSize ); |
52 | int32_t getSize() const; | 55 | int32_t getSize() const; |
56 | void setData( const char *pSrc, int32_t iSize ); | ||
53 | char *getData() const; | 57 | char *getData() const; |
54 | char *c_str() const; | 58 | char *c_str() const; |
55 | 59 | ||
@@ -184,6 +188,7 @@ namespace Bu | |||
184 | 188 | ||
185 | class Formatter; | 189 | class Formatter; |
186 | Formatter &operator<<( Formatter &rOut, const Blob &b ); | 190 | Formatter &operator<<( Formatter &rOut, const Blob &b ); |
191 | Formatter &operator>>( Formatter &fIn, Blob &b ); | ||
187 | } | 192 | } |
188 | 193 | ||
189 | #endif | 194 | #endif |