Make compressor take string references (closes #214 github issue)

This commit is contained in:
Keith Winstein
2012-04-19 01:35:15 -04:00
parent 24d48f37a4
commit 58589787ea
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ namespace Network {
Compressor() : buffer( NULL ) { buffer = new unsigned char[ BUFFER_SIZE ]; }
~Compressor() { if ( buffer ) { delete[] buffer; } }
std::string compress_str( const std::string input );
std::string uncompress_str( const std::string input );
std::string compress_str( const std::string &input );
std::string uncompress_str( const std::string &input );
/* unused */
Compressor( const Compressor & );