summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-03-27 21:05:10 +0000
committerMike Buland <eichlan@xagasoft.com>2007-03-27 21:05:10 +0000
commitbebc878b054a06ff8e541db695b1e586fff2b022 (patch)
tree031e2e141fc18450954e0323ea6de60328822575 /src/connection.cpp
parent57191021fe365eb8d448a9f2a66002a59e2ab065 (diff)
downloadlibbu++-bebc878b054a06ff8e541db695b1e586fff2b022.tar.gz
libbu++-bebc878b054a06ff8e541db695b1e586fff2b022.tar.bz2
libbu++-bebc878b054a06ff8e541db695b1e586fff2b022.tar.xz
libbu++-bebc878b054a06ff8e541db695b1e586fff2b022.zip
Added a new helper to the flexbuf, and likewise to the connection class, since
it uses it heavily.
Diffstat (limited to '')
-rw-r--r--src/connection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index a5fac5b..f042705 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -29,6 +29,11 @@ Connection::~Connection()
29 if( pProtocol != NULL ) delete pProtocol; 29 if( pProtocol != NULL ) delete pProtocol;
30} 30}
31 31
32void Connection::ensureCapacity( int nSize )
33{
34 xOutputBuf.ensureCapacity( nSize );
35}
36
32bool Connection::appendOutput( const char *lpOutput, int nSize ) 37bool Connection::appendOutput( const char *lpOutput, int nSize )
33{ 38{
34 return xOutputBuf.appendData( lpOutput, nSize ); 39 return xOutputBuf.appendData( lpOutput, nSize );