修改偏移表-最终解决方案
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-12-24 11:37:49 +08:00
parent 3ee81beb80
commit c7d4159302
1 changed files with 5 additions and 1 deletions

View File

@ -561,10 +561,14 @@ namespace IRaCIS.Core.SCP.Service
bot.Add(botOffset);
botOffset += (uint)data.Length + 8; // 累加帧长度
botOffset += (uint)data.Length;
while (offset < data.Length)
{
botOffset += 8;
int size = Math.Min(fragmentSize, data.Length - offset);
var buffer = new byte[size];
Buffer.BlockCopy(data, offset, buffer, 0, size);