feat: 优化Common函数以提高性能

This commit is contained in:
2025-07-31 15:42:41 +08:00
parent 8c404d4072
commit bafd06162c
7 changed files with 344 additions and 228 deletions

View File

@@ -413,6 +413,7 @@ public class DebuggerController : ControllerBase
}
var channelBytes = new byte[4 * depth];
Buffer.BlockCopy(channelUintArr, 0, channelBytes, 0, channelBytes.Length);
channelBytes = Common.Number.ReverseBytes(channelBytes, 4).Value;
logger.Debug($"{channel.name} HexData: {BitConverter.ToString(channelBytes)}");
var base64 = Convert.ToBase64String(channelBytes);
channelDataList.Add(new ChannelCaptureData { name = channel.name, data = base64 });