diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2022-04-20 14:04:47 -0700 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2022-04-20 14:04:47 -0700 |
commit | fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975 (patch) | |
tree | f16f7e7f54399ef9c753beb87069eed8122dbccb /src/stable/membuf.cpp | |
parent | d10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3 (diff) | |
download | libbu++-fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975.tar.gz libbu++-fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975.tar.bz2 libbu++-fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975.tar.xz libbu++-fd56cdd21a7c9c944ad189cf91ff24d3c2b0f975.zip |
Gradually moving to better archive structure.
It's dragging other new API changes along with it, including use of Blob
and Text.
Diffstat (limited to '')
-rw-r--r-- | src/stable/membuf.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stable/membuf.cpp b/src/stable/membuf.cpp index 040c0c6..fff3027 100644 --- a/src/stable/membuf.cpp +++ b/src/stable/membuf.cpp | |||
@@ -169,6 +169,11 @@ Bu::String &Bu::MemBuf::getString() | |||
169 | return sBuf; | 169 | return sBuf; |
170 | } | 170 | } |
171 | 171 | ||
172 | Bu::Blob Bu::MemBuf::getBlob() | ||
173 | { | ||
174 | return Bu::Blob( sBuf.getStr(), sBuf.getSize() ); | ||
175 | } | ||
176 | |||
172 | void Bu::MemBuf::setString( const Bu::String &sNewData ) | 177 | void Bu::MemBuf::setString( const Bu::String &sNewData ) |
173 | { | 178 | { |
174 | sBuf = sNewData; | 179 | sBuf = sNewData; |