{"action":"created","issue":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/371","labels_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/371/comments","events_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/371/events","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/issues/371","id":113827908,"number":371,"title":"Need to upgrade DukTape to 1.3.0 for binary array object support.","user":{"login":"Type1J","id":413028,"avatar_url":"https://avatars.githubusercontent.com/u/413028?v=3","gravatar_id":"","url":"https://api.github.com/users/Type1J","html_url":"https://github.com/Type1J","followers_url":"https://api.github.com/users/Type1J/followers","following_url":"https://api.github.com/users/Type1J/following{/other_user}","gists_url":"https://api.github.com/users/Type1J/gists{/gist_id}","starred_url":"https://api.github.com/users/Type1J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Type1J/subscriptions","organizations_url":"https://api.github.com/users/Type1J/orgs","repos_url":"https://api.github.com/users/Type1J/repos","events_url":"https://api.github.com/users/Type1J/events{/privacy}","received_events_url":"https://api.github.com/users/Type1J/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-28T14:03:08Z","updated_at":"2015-11-08T22:03:52Z","closed_at":null,"body":"I might be wrong, and please correct me if I am.\r\n\r\nSay that I want to pass binary data to JavaScript from C++ using SendEvent:\r\n    VariantMap eventData;\r\n    eventData.Insert(MakePair(StringHash(\"data\"), Variant(PODVector<unsigned char>((const unsigned char *)ptr, length))));\r\n    SendEvent(\"binary_data\", eventData);\r\n\r\nI would expect that there would be some type that I could get a JavaScript typed array or ArrayBuffer to be available from the eventData object, but this causes the \"data\" field to be undefined when the event is handled from JavaScript. Changing the PODVector to a String works as expected, but I'm assuming that strings are some form of UTF (might misrepresent binary data), and I want a byte array (no chance of misrepresentation)."},"comment":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/comments/154879282","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/issues/371#issuecomment-154879282","issue_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/371","id":154879282,"user":{"login":"Type1J","id":413028,"avatar_url":"https://avatars.githubusercontent.com/u/413028?v=3","gravatar_id":"","url":"https://api.github.com/users/Type1J","html_url":"https://github.com/Type1J","followers_url":"https://api.github.com/users/Type1J/followers","following_url":"https://api.github.com/users/Type1J/following{/other_user}","gists_url":"https://api.github.com/users/Type1J/gists{/gist_id}","starred_url":"https://api.github.com/users/Type1J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Type1J/subscriptions","organizations_url":"https://api.github.com/users/Type1J/orgs","repos_url":"https://api.github.com/users/Type1J/repos","events_url":"https://api.github.com/users/Type1J/events{/privacy}","received_events_url":"https://api.github.com/users/Type1J/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T22:03:52Z","updated_at":"2015-11-08T22:03:52Z","body":"Thanks! I hope it meets or exceeds your expectations. :-)"}}