diff options
author | Mike Buland <eichlan@xagasoft.com> | 2019-05-27 21:02:35 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2019-05-27 21:02:35 -0700 |
commit | 806d0475416558a64dc2bacd253b7406bdea29a7 (patch) | |
tree | f6f11b0500227b874417d6818e8b60702ea30f2f | |
parent | 26aa4bd668a2f2358b03634bce78c58085f14164 (diff) | |
download | libbu++-806d0475416558a64dc2bacd253b7406bdea29a7.tar.gz libbu++-806d0475416558a64dc2bacd253b7406bdea29a7.tar.bz2 libbu++-806d0475416558a64dc2bacd253b7406bdea29a7.tar.xz libbu++-806d0475416558a64dc2bacd253b7406bdea29a7.zip |
Blob builder laid out a bit more.
Diffstat (limited to '')
-rw-r--r-- | src/unstable/blobbuilder.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/unstable/blobbuilder.h b/src/unstable/blobbuilder.h index 8cc2a24..817a990 100644 --- a/src/unstable/blobbuilder.h +++ b/src/unstable/blobbuilder.h | |||
@@ -26,8 +26,7 @@ namespace Bu | |||
26 | Chunk(); | 26 | Chunk(); |
27 | ~Chunk(); | 27 | ~Chunk(); |
28 | 28 | ||
29 | int16_t iFill; | 29 | int32_t iLength; |
30 | int16_t iLength; | ||
31 | char *pData; | 30 | char *pData; |
32 | Chunk *pNext; | 31 | Chunk *pNext; |
33 | }; | 32 | }; |
@@ -51,9 +50,25 @@ namespace Bu | |||
51 | 50 | ||
52 | public: | 51 | public: |
53 | BlobBuilder(); | 52 | BlobBuilder(); |
53 | BlobBuilder( const Blob &rSrc ); | ||
54 | BlobBuilder( const BlobBuilder &rSrc ); | 54 | BlobBuilder( const BlobBuilder &rSrc ); |
55 | virtual ~BlobBuilder(); | 55 | virtual ~BlobBuilder(); |
56 | 56 | ||
57 | void set( const Blob &rSrc ); | ||
58 | void set( const char *pSrc, int32_t iLength ); | ||
59 | void append( const Blob &rSrc ); | ||
60 | void append( const char *pSrc, int32_t iLength ); | ||
61 | void prepend( const Blob &rSrc ); | ||
62 | void prepend( const char *pSrc, int32_t iLength ); | ||
63 | void insert( int32_t iBefore, const Blob &rSrc ); | ||
64 | void insert( int32_t iBefore, const char *pSrc, const Blob &rSrc ); | ||
65 | void clear(); | ||
66 | int32_t getSize() const; | ||
67 | |||
68 | BlobBuilder &operator=( const Blob &rSrc ); | ||
69 | BlobBuilder &operator=( const char *pSrc ); | ||
70 | BlobBuilder &operator+=( const Blob &rSrc ); | ||
71 | BlobBuilder &operator+=( const char *pSrc ); | ||
57 | private: | 72 | private: |
58 | }; | 73 | }; |
59 | }; | 74 | }; |