From 15bda51ed7d01ff40fbd49fd383639a25af9ab64 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Sun, 6 Apr 2008 02:35:11 +0200 Subject: [PATCH] Import MemBuf::size(size) method from HEAD --- src/MemBuf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.2