()
| 73 | } |
| 74 | |
| 75 | func (mw *msgWriter) ensureFlate() { |
| 76 | if mw.trimWriter == nil { |
| 77 | mw.trimWriter = &trimLastFourBytesWriter{ |
| 78 | w: util.WriterFunc(mw.write), |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | if mw.flateWriter == nil { |
| 83 | mw.flateWriter = getFlateWriter(mw.trimWriter) |
| 84 | } |
| 85 | mw.flate = true |
| 86 | } |
| 87 | |
| 88 | func (mw *msgWriter) flateContextTakeover() bool { |
| 89 | if mw.c.client { |
no test coverage detected