diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-27 21:05:10 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-27 21:05:10 +0000 |
commit | bebc878b054a06ff8e541db695b1e586fff2b022 (patch) | |
tree | 031e2e141fc18450954e0323ea6de60328822575 /src/connection.cpp | |
parent | 57191021fe365eb8d448a9f2a66002a59e2ab065 (diff) | |
download | libbu++-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 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 5 |
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 | ||
32 | void Connection::ensureCapacity( int nSize ) | ||
33 | { | ||
34 | xOutputBuf.ensureCapacity( nSize ); | ||
35 | } | ||
36 | |||
32 | bool Connection::appendOutput( const char *lpOutput, int nSize ) | 37 | bool Connection::appendOutput( const char *lpOutput, int nSize ) |
33 | { | 38 | { |
34 | return xOutputBuf.appendData( lpOutput, nSize ); | 39 | return xOutputBuf.appendData( lpOutput, nSize ); |