Closed pkhach closed 6 years ago
Hello,
I would like to pass binary data to JavaScript and process them as ArrayBuffer (Uint8Array) in script.
How can I do this with v8pp?
struct X { unsigned char* buffer; }; // bind class v8pp::class_<X> X_class(isolate); X_class .set("buffer", ??????);
Thanks!
Hi @pkhach, You could try to write a v8pp::convert<X> specialization that uses v8::ArrayBuffer for X::buffer
v8pp::convert<X>
v8::ArrayBuffer
X::buffer
Hello,
I would like to pass binary data to JavaScript and process them as ArrayBuffer (Uint8Array) in script.
How can I do this with v8pp?
Thanks!