aboutsummaryrefslogtreecommitdiff
path: root/src/stable/membuf.cpp
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2022-04-20 14:04:47 -0700
committerMike Buland <mbuland@penny-arcade.com>2022-04-20 14:04:47 -0700
commitfd56cdd21a7c9c944ad189cf91ff24d3c2b0f975 (patch)
treef16f7e7f54399ef9c753beb87069eed8122dbccb /src/stable/membuf.cpp
parentd10e6a5ca0905f0ef2836cd98aebfb48e7f1e8a3 (diff)
downloadlibbu++-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 'src/stable/membuf.cpp')
-rw-r--r--src/stable/membuf.cpp5
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
172Bu::Blob Bu::MemBuf::getBlob()
173{
174 return Bu::Blob( sBuf.getStr(), sBuf.getSize() );
175}
176
172void Bu::MemBuf::setString( const Bu::String &sNewData ) 177void Bu::MemBuf::setString( const Bu::String &sNewData )
173{ 178{
174 sBuf = sNewData; 179 sBuf = sNewData;