diff options
Diffstat (limited to 'src/unstable/blob.cpp')
-rw-r--r-- | src/unstable/blob.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/unstable/blob.cpp b/src/unstable/blob.cpp index 3f7d9d9..9abfede 100644 --- a/src/unstable/blob.cpp +++ b/src/unstable/blob.cpp | |||
@@ -6,6 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "bu/blob.h" | 8 | #include "bu/blob.h" |
9 | #include "bu/blobbuilder.h" | ||
9 | #include "bu/exceptioninvaliditerator.h" | 10 | #include "bu/exceptioninvaliditerator.h" |
10 | #include "bu/exceptionindexoutofbounds.h" | 11 | #include "bu/exceptionindexoutofbounds.h" |
11 | 12 | ||
@@ -25,6 +26,16 @@ Bu::Blob::Blob( const Bu::Blob &rSrc ) : | |||
25 | memcpy( pData, rSrc.pData, iSize+1 ); | 26 | memcpy( pData, rSrc.pData, iSize+1 ); |
26 | } | 27 | } |
27 | 28 | ||
29 | Bu::Blob::Blob( const class BlobBuilder &rSrc ) : | ||
30 | pData( 0 ), | ||
31 | iSize( 0 ) | ||
32 | { | ||
33 | iSize = rSrc.getSize(); | ||
34 | pData = new char[iSize]; | ||
35 | |||
36 | rSrc.copyTo( pData, iSize ); | ||
37 | } | ||
38 | |||
28 | Bu::Blob::Blob( const char *pSrc ) : | 39 | Bu::Blob::Blob( const char *pSrc ) : |
29 | pData( 0 ), | 40 | pData( 0 ), |
30 | iSize( 0 ) | 41 | iSize( 0 ) |