aboutsummaryrefslogtreecommitdiff
path: root/src/membuf.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/membuf.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/membuf.cpp b/src/membuf.cpp
index 0c1c441..b822641 100644
--- a/src/membuf.cpp
+++ b/src/membuf.cpp
@@ -140,6 +140,15 @@ void Bu::MemBuf::setBlocking( bool )
140{ 140{
141} 141}
142 142
143void Bu::MemBuf::setSize( long iSize )
144{
145 if( iSize < 0 )
146 iSize = 0;
147 sBuf.setSize( iSize );
148 if( nPos > iSize )
149 nPos = iSize;
150}
151
143Bu::FString &Bu::MemBuf::getString() 152Bu::FString &Bu::MemBuf::getString()
144{ 153{
145 return sBuf; 154 return sBuf;