code: func (r *Registration) UnmarshalBinary(data []byte) error {
  	reg, _, err := parseRegistration(data)
  	if err != nil {
  		return err
  	}
  	*r = *reg
  	return nil
  }
docs: // UnmarshalBinary implements encoding.BinaryMarshaler.