func (e *framedMsgpackEncoder) encodeToBytes(enc *codec.Encoder, i interface{}) (v []byte, err error) { enc.ResetBytes(&v) err = enc.Encode(i) return v, err }