From a7e54c123e6c404128e8cb522ae9102a11fe5314 Mon Sep 17 00:00:00 2001 From: johnche Date: Thu, 21 Nov 2024 10:38:24 +0800 Subject: [PATCH] =?UTF-8?q?[unreal]WRAP=5FNEW=E7=89=88=E6=9C=ACv8=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unreal/Puerts/Source/JsEnv/Private/WebSocketImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unreal/Puerts/Source/JsEnv/Private/WebSocketImpl.cpp b/unreal/Puerts/Source/JsEnv/Private/WebSocketImpl.cpp index eaaee2ef3e..9d6b9423fc 100644 --- a/unreal/Puerts/Source/JsEnv/Private/WebSocketImpl.cpp +++ b/unreal/Puerts/Source/JsEnv/Private/WebSocketImpl.cpp @@ -345,7 +345,7 @@ void V8WebSocketClientImpl::OnMessage(wspp_connection_hdl InHandle, wspp_message else if (InMessage->get_opcode() == websocketpp::frame::opcode::BINARY) { v8::Local Ab = v8::ArrayBuffer::New(Isolate, InMessage->get_payload().size()); - void* Buff = Ab->GetBackingStore()->Data(); + void* Buff = DataTransfer::GetArrayBufferData(Ab); ::memcpy(Buff, InMessage->get_payload().data(), InMessage->get_payload().size()); args[0] = Ab; }