code: func Encode(e Encoder, obj Object, overrides ...unversioned.GroupVersion) ([]byte, error) {
  	// TODO: reuse buffer
  	buf := &bytes.Buffer{}
  	if err := e.EncodeToStream(obj, buf, overrides...); err != nil {
  		return nil, err
  	}
  	return buf.Bytes(), nil
  }
docs: // Encode is a convenience wrapper for encoding to a []byte from an Encoder