From ef2d70e6c79166ff8d718f0474c4d5532c885634 Mon Sep 17 00:00:00 2001 From: mahaonan Date: Wed, 15 Nov 2023 15:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20file=5Fselector=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20StandardMessageCodec=20=E4=BC=A0=E8=BE=93?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=95=B0=E6=8D=AE=E6=85=A2=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mahaonan --- .../flutter/src/main/ets/plugin/common/StandardMessageCodec.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets index ffc6948452..d9b52ff3ef 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets @@ -196,7 +196,7 @@ export default class StandardMessageCodec implements MessageCodec { writeBytes(stream: ByteBuffer, bytes: Uint8Array) { this.writeSize(stream, bytes.length) - bytes.forEach(item => stream.writeInt8(item)) + stream.writeUint8Array(bytes); } readSize(buffer: ByteBuffer) { -- Gitee