修改偏移表-最终解决方案
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3ee81beb80
commit
c7d4159302
|
|
@ -561,10 +561,14 @@ namespace IRaCIS.Core.SCP.Service
|
||||||
|
|
||||||
bot.Add(botOffset);
|
bot.Add(botOffset);
|
||||||
|
|
||||||
botOffset += (uint)data.Length + 8; // 累加帧长度
|
botOffset += (uint)data.Length;
|
||||||
|
|
||||||
|
|
||||||
while (offset < data.Length)
|
while (offset < data.Length)
|
||||||
{
|
{
|
||||||
|
botOffset += 8;
|
||||||
|
|
||||||
|
|
||||||
int size = Math.Min(fragmentSize, data.Length - offset);
|
int size = Math.Min(fragmentSize, data.Length - offset);
|
||||||
var buffer = new byte[size];
|
var buffer = new byte[size];
|
||||||
Buffer.BlockCopy(data, offset, buffer, 0, size);
|
Buffer.BlockCopy(data, offset, buffer, 0, size);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue