()
| 239 | } |
| 240 | |
| 241 | func (c *BufferCache) flushCold() { |
| 242 | for b := range c.cold.buckets { |
| 243 | c.cold.buckets[b].flush(c.decompressAndFlush) |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | // putInCold puts buf in the cold cache if its size fits it, otherwise the |
| 248 | // buffer is put into the hot cache. |