Skip to content

[QUESTION] binary_t out parameter #456

@djmuhlestein

Description

@djmuhlestein

If you didn't find answer in existing open/closed issues you may ask here

I tried to make an interface with a binary_t out parameter. Example:

interface TestInterface {
   get_data(out binary_t data) -> void
}

The resulting shim code creates a binary_t *data = NULL but then passes that to the interface function.

e.g: m_handler->get_data(data)

It is then impossible in your interface handler to return the data. You can't set *data because the ptr wasn't passed in as a double ptr. Nor can you assign anything to data because it's NULL.

Question is whether or not this is a feature request to be able to support out parameter binary_t or if this is a bug and should be fixed?

As a workaround, I am changing it to an inout parameter.

Steps you didn't forgot to do

  • [ x] I checked if there is no related issue opened/closed.
  • [ x] I checked that there doesn't exist opened/closed PR which is solving this issue.
  • [ x] I looked in documentation if there is related information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions