Convert ptr, count
arguments into slice pointers
#610
Labels
A-framework
Affects the framework crates and the translator for them
enhancement
New feature or request
Convert things like:
Into:
That is, methods that have a pointer argument and uses
count:
with aNSInteger
/NSUInteger
should instead allow passing a slice pointer, and then we extract the count automatically.This probably requires that we output a shim for the method manually, as doing this kind of rewriting purely in the type-system is very difficult.
Unsure how this should work in
declare_class!
? Maybe we do need to integrate it into the type-system? Maybe we need a special attribute that says where the count should go?The text was updated successfully, but these errors were encountered: