From: Henrik Nordstrom Date: Sun, 6 Apr 2008 00:35:11 +0000 (+0200) Subject: Import MemBuf::size(size) method from HEAD X-Git-Tag: SQUID_3_0_STABLE5~26^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15bda51ed7d01ff40fbd49fd383639a25af9ab64;p=thirdparty%2Fsquid.git Import MemBuf::size(size) method from HEAD --- diff --git a/src/MemBuf.h b/src/MemBuf.h index 6d06ea2ad6..7185632dc6 100644 --- a/src/MemBuf.h +++ b/src/MemBuf.h @@ -1,7 +1,7 @@ /* - * $Id: MemBuf.h,v 1.8 2006/08/21 00:50:41 robertc Exp $ + * $Id: MemBuf.h,v 1.9 2007/12/21 23:48:04 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -60,6 +60,7 @@ public: // these space-related methods assume no growth and allow 0-termination char *space() { return buf + size; } // space to add data + char *space(mb_size_t required) { if (size + required > capacity) grow(size + required); return buf + size; } // space to add data mb_size_t spaceSize() const; bool hasSpace() const { return size+1 < capacity; }