diff options
author | Mike Buland <eichlan@xagasoft.com> | 2019-06-25 16:33:14 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2019-06-25 16:33:14 -0700 |
commit | 9e4d15b6dec9a7f9358855faeb96b1ac767a15e6 (patch) | |
tree | 5a71d51a6f2456cc9ab0f6784d4a5dfbdc83da55 /src/unstable/blob.cpp | |
parent | bfc1e2d595452c068a2b66be1436aa34f1083f3d (diff) | |
download | libbu++-9e4d15b6dec9a7f9358855faeb96b1ac767a15e6.tar.gz libbu++-9e4d15b6dec9a7f9358855faeb96b1ac767a15e6.tar.bz2 libbu++-9e4d15b6dec9a7f9358855faeb96b1ac767a15e6.tar.xz libbu++-9e4d15b6dec9a7f9358855faeb96b1ac767a15e6.zip |
Got most of the functions in, now to test them.
Diffstat (limited to '')
-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 ) |