From bebc878b054a06ff8e541db695b1e586fff2b022 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 27 Mar 2007 21:05:10 +0000 Subject: Added a new helper to the flexbuf, and likewise to the connection class, since it uses it heavily. --- src/connection.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/connection.cpp') 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() if( pProtocol != NULL ) delete pProtocol; } +void Connection::ensureCapacity( int nSize ) +{ + xOutputBuf.ensureCapacity( nSize ); +} + bool Connection::appendOutput( const char *lpOutput, int nSize ) { return xOutputBuf.appendData( lpOutput, nSize ); -- cgit v1.2.3