Handle size_t
length arguments properly in ClientKit wrapper.
#12
Labels
Milestone
size_t
length arguments properly in ClientKit wrapper.
#12
Lines I'm talking about:
The corresponding C methods those invoke are here: https://github.com/OSVR/OSVR-Core/blob/master/inc/osvr/ClientKit/ParametersC.h
Note that those are actually
size_t
which is platform dependent, and which I think we can assume is the same asuint_ptr_t
.size_t
is the idiomatic type to use there from a C and C++ perspective, so if reasonable I'd like to leave those signatures alone. However, it poses an issue to the .NET bindings. It looks like there's a way to handle it properly. If it turns out to be unfeasible, we can change those touint32_t
if needed, since that should be a big enough type, but if a solution isn't too hard that's just in the .NET stuff I think that's probably preferred.Here are the links I've collected related to this issue.
The text was updated successfully, but these errors were encountered: