From 6b774ad5802355c025e4ea21badc693bb6e0a831 Mon Sep 17 00:00:00 2001 From: zqm Date: Wed, 29 Oct 2025 17:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86DeviceManager=E4=B8=AD=E7=9A=84=5Fimag?= =?UTF-8?q?eBuffer=E3=80=81=5FimageDataAccumulator=E5=92=8C=5FmultipartBou?= =?UTF-8?q?ndary=E5=AD=97=E6=AE=B5=E8=AE=BE=E4=B8=BA=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3IDE0044=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Windows/CS/Framework4.0/Toprie/Toprie/DeviceManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Windows/CS/Framework4.0/Toprie/Toprie/DeviceManager.cs b/Windows/CS/Framework4.0/Toprie/Toprie/DeviceManager.cs index b703c38..e02bcb4 100644 --- a/Windows/CS/Framework4.0/Toprie/Toprie/DeviceManager.cs +++ b/Windows/CS/Framework4.0/Toprie/Toprie/DeviceManager.cs @@ -214,11 +214,11 @@ namespace JoyD.Windows.CS.Toprie // 停止请求事件 private ManualResetEvent _stopRequested = new ManualResetEvent(false); // 缓冲区 - private byte[] _imageBuffer = new byte[4096]; + private readonly byte[] _imageBuffer = new byte[4096]; // 图像数据累积缓冲区 - private byte[] _imageDataAccumulator = new byte[0]; + private readonly byte[] _imageDataAccumulator = new byte[0]; // 多部分请求边界 - private string _multipartBoundary = string.Empty; + private readonly string _multipartBoundary = string.Empty; // 锁对象 private readonly object _lockObject = new object(); // 是否启用自动重连