Skip to content

Commit

Permalink
[unreal]WRAP_NEW版本v8编译失败
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 21, 2024
1 parent 4126b5a commit a7e54c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unreal/Puerts/Source/JsEnv/Private/WebSocketImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void V8WebSocketClientImpl::OnMessage(wspp_connection_hdl InHandle, wspp_message
else if (InMessage->get_opcode() == websocketpp::frame::opcode::BINARY)
{
v8::Local<v8::ArrayBuffer> 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;
}
Expand Down

0 comments on commit a7e54c1

Please sign in to comment.