func (*protocol) WriteParam(w *bufio.Writer, param []byte) error { var err error io2.ErrWrite(&err, w, param) io2.ErrWrite(&err, w, _CRLF) return err }
func (p *protocol) WriteHeader(w *bufio.Writer, hdr Header) error { bytes, err := p.codec.Marshal(&hdr) io2.ErrWrite(&err, w, bytes) io2.ErrWrite(&err, w, _CRLF) return err }