Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated CreateXDirect with std::span<T> or "T* + size" payloads #8279

Open
pierricgimmig opened this issue Apr 12, 2024 · 0 comments
Open

Comments

@pierricgimmig
Copy link

In generated C++ code, the CreateXDirect functions take in a payload of type const std::vector<uint8_t> *payload.

The caller doesn't always have a std::vector at hand, and creating one might not always be possible. In such cases, is there a way to call into a CreateXDirect function or equivalent without allocating?

If not, maybe adding a version of CreateXDirect functions that takes in a std::span or "T* + size" would be a good idea?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant