frame.go
func (f UnknownFrame) Write(w *bufio.Writer) (err error) {
	if err = writeFrameHeader(w, f.Type, len(f.Data)); err != nil {
		err = errors.WithMessage(err, "writing unknown frame")
		return
	}

	if _, err = w.Write(f.Data); err != nil {
		err = errors.Wrap(err, "writing unknown frame")
		return
	}

	return
}
func (f UnknownFrame) Write(w *bufio.Writer) (err error) {
	if err = writeFrameHeader(w, f.Type, len(f.Data)); err != nil {
		err = errors.WithMessage(err, "writing unknown frame")
		return
	}

	if _, err = w.Write(f.Data); err != nil {
		err = errors.Wrap(err, "writing unknown frame")
		return
	}

	return
}
// Write serializes the frame to the given buffered output, satisfies the Frame
// interface.