diff options
Diffstat (limited to 'src/unstable/blob.h')
-rw-r--r-- | src/unstable/blob.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/blob.h b/src/unstable/blob.h index bda29d6..dfddb02 100644 --- a/src/unstable/blob.h +++ b/src/unstable/blob.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #define BU_BLOB_H | 9 | #define BU_BLOB_H |
10 | 10 | ||
11 | #include "bu/config.h" | 11 | #include "bu/config.h" |
12 | #include "bu/archivebase.h" | ||
12 | 13 | ||
13 | namespace Bu | 14 | namespace Bu |
14 | { | 15 | { |
@@ -40,10 +41,12 @@ namespace Bu | |||
40 | Blob( const class BlobBuilder &rSrc ); | 41 | Blob( const class BlobBuilder &rSrc ); |
41 | Blob( const char *pSrc ); | 42 | Blob( const char *pSrc ); |
42 | Blob( const void *pSrc, int32_t iSize ); | 43 | Blob( const void *pSrc, int32_t iSize ); |
44 | Blob( int32_t iSize ); | ||
43 | Blob( const const_iterator &iStart ); | 45 | Blob( const const_iterator &iStart ); |
44 | Blob( const const_iterator &iStart, const const_iterator &iEnd ); | 46 | Blob( const const_iterator &iStart, const const_iterator &iEnd ); |
45 | virtual ~Blob(); | 47 | virtual ~Blob(); |
46 | 48 | ||
49 | void setSize( int32_t iSize ); | ||
47 | int32_t getSize() const; | 50 | int32_t getSize() const; |
48 | char *getData() const; | 51 | char *getData() const; |
49 | char *c_str() const; | 52 | char *c_str() const; |
@@ -161,6 +164,9 @@ namespace Bu | |||
161 | int32_t iSize; | 164 | int32_t iSize; |
162 | }; | 165 | }; |
163 | 166 | ||
167 | ArchiveBase &operator<<( ArchiveBase &ar, const Blob &s ); | ||
168 | ArchiveBase &operator>>( ArchiveBase &ar, Blob &s ); | ||
169 | |||
164 | template<typename T> | 170 | template<typename T> |
165 | uint32_t __calcHashCode( const T &k ); | 171 | uint32_t __calcHashCode( const T &k ); |
166 | 172 | ||