aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/blob.h
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2023-04-24 10:04:33 -0700
committerMike Buland <mbuland@penny-arcade.com>2023-04-24 10:04:33 -0700
commitaf849fa314ad335e14c82a2018ee7d7bea91842a (patch)
treeb30e4a5851c771d0667956739d3868a70c072715 /src/unstable/blob.h
parente1115a28535663cfe404791ede5bb7ca70399053 (diff)
downloadlibbu++-af849fa314ad335e14c82a2018ee7d7bea91842a.tar.gz
libbu++-af849fa314ad335e14c82a2018ee7d7bea91842a.tar.bz2
libbu++-af849fa314ad335e14c82a2018ee7d7bea91842a.tar.xz
libbu++-af849fa314ad335e14c82a2018ee7d7bea91842a.zip
Blob related changes throughout.
Diffstat (limited to '')
-rw-r--r--src/unstable/blob.h6
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
13namespace Bu 14namespace 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