Reading ArrayBuffer in C++ From Javascript

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Reading ArrayBuffer in C++ From Javascript

Postby nickhalfasleep » Tue Jun 04, 2019 8:53 am

Hello,
I am inquiring about what is involved in getting (or implementing myself for CEF) read access to an ArrayBuffer originating in JavaScript and then passed into a custom handler within C++. Currently I can see the v8_object reference (v8_value->IsArrayBuffer() returns true). But there is no way I can see to actually read this value. Is it due to the special nature of ArrayBuffer types within v8?

Or is there a cast from CefRefPtr<CefV8Value>& that will let me see the raw bytes I have missed?

My current goals involve a somewhat large array, and base64 encoding it to send it via a custom XMLHttpRequest has performance implications.

Thank you for a marvelous framework that enables so much rich user interaction.

Best Regards,
Nick Gully
nickhalfasleep
Newbie
 
Posts: 1
Joined: Tue Jun 04, 2019 8:40 am

Return to Feature Request Forum

Who is online

Users browsing this forum: Google [Bot] and 2 guests