Squid internals MemBufs (src/MemBuf.c) What are they? A MemBuf is a memory-resident buffer with a printf()-like interface. It hides all offset and overflow checking. MemBufs are designed to handle relatively small chunks of data. There are some mbuf-aware routines which make writing them easier (eg comm_write_mbuf())