Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Pass Uint8Array from/to native module #9

Open
motiz88 opened this issue Jul 1, 2016 · 4 comments
Open

Pass Uint8Array from/to native module #9

motiz88 opened this issue Jul 1, 2016 · 4 comments

Comments

@motiz88
Copy link
Owner

motiz88 commented Jul 1, 2016

Given recent developments in JavaScriptCore, it's reasonable to expect that the React Native bridge will eventually support marshaling typed arrays efficiently to and from native methods (see for example facebook/react-native#1424). When that happens, we will want to use this capability for send/onmidimessage, so we can move MIDI data back and forth in native-backed Uint8Arrays without extra allocation/copying.

@mhzed
Copy link

mhzed commented Jul 21, 2016

Agreed.

@balthazar
Copy link

It would be nice indeed, anything blocking on that still?

@motiz88
Copy link
Owner Author

motiz88 commented Dec 1, 2018

I haven't worked on this module in years since I never went ahead with the project that required it. Consider it a proof of concept. That said, I'm not sure what the current state of things is in React Native, but I think I've seen native Blob support mentioned at some point, so this might warrant looking into again.

@balthazar
Copy link

I see, thanks!

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

No branches or pull requests

3 participants