The same buffer tank can be used for both heating and cooling, but temperatures and insulation requirements change significantly.
In heating
The buffer stores hot water and limits frequent start-stop cycles of the compressor.
In cooling
It stores chilled water and helps stabilize flow and temperature.
Critical point
In cooling, proper insulation is required to prevent condensation on the surface of the tank and the piping.

