Re: [squid-dev] Idea: what if SBuf was a Packable?

2024-03-13 Thread Alex Rousskov
On 2024-03-13 05:25, Francesco Chemolli wrote:   I spent some time wondering whether we could reduce code duplication by making SBuf implement the Packable interface, and replacing SBufStream with PackableStream. This idea was studied two years ago, including spending many hours on

[squid-dev] Idea: what if SBuf was a Packable?

2024-03-13 Thread Francesco Chemolli
Hi all, I spent some time wondering whether we could reduce code duplication by making SBuf implement the Packable interface, and replacing SBufStream with PackableStream. The interface changes seem rather minimal, SBuf already implements append(const char*, int) and vappendf; the main