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?
In generated C++ code, the
CreateXDirect
functions take in a payload of typeconst 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 or "T* + size" would be a good idea?
CreateXDirect
functions that takes in a std::spanThanks