You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create an SRArray<SRData> on the rust side and pass it as a parameter to a swift function? Do you have any examples of doing this?
Basically what I'm trying to do is capture a series of screenshots, convert them from CGImage -> SRData, and then pass an array of SRData to a swift function. It can't all be on the swift side though, the rust code needs to collect the array of SRData and then pass it back to the swift side as an array.
rust calls swift to get an `SRData`
rust calls swift to get an `SRData`
..
rust collects `SRData` objects into an SRArray<SRData> <-- this is the part that is missing
rust calls swift and passes SRArray<SRData>
Does this sound like the right approach, or would SRObjectArray<CGImage> or defining a custom object be easier?
The text was updated successfully, but these errors were encountered:
Is it possible to create an
SRArray<SRData>
on the rust side and pass it as a parameter to a swift function? Do you have any examples of doing this?Basically what I'm trying to do is capture a series of screenshots, convert them from
CGImage
->SRData
, and then pass an array of SRData to a swift function. It can't all be on the swift side though, the rust code needs to collect the array ofSRData
and then pass it back to the swift side as an array.Does this sound like the right approach, or would
SRObjectArray<CGImage>
or defining a custom object be easier?The text was updated successfully, but these errors were encountered: