| 354 | } |
| 355 | |
| 356 | V8_EXPORT void SetArrayBufferToOutValue(v8::Isolate* Isolate, v8::Value *Value, unsigned char *Bytes, int Length) |
| 357 | { |
| 358 | if (Value->IsObject()) |
| 359 | { |
| 360 | auto Context = Isolate->GetCurrentContext(); |
| 361 | auto Outer = Value->ToObject(Context).ToLocalChecked(); |
| 362 | v8::Local<v8::ArrayBuffer> Ab = puerts::NewArrayBuffer(Isolate, Bytes, Length); |
| 363 | auto ReturnVal = Outer->Set(Context, FV8Utils::V8String(Isolate, "value"), Ab); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | V8_EXPORT void *GetObjectFromValue(v8::Isolate* Isolate, v8::Value *Value, int IsOut) |
| 368 | { |
nothing calls this directly
no test coverage detected