正文.NET删除字节数组中的0字节IP云V管理员/2022-08-25/6 阅读 08/25提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 private static byte[] Decode(byte[] packet){ var i = packet.Length - ; while (packet[i] == 0) { --i; } var temp = new byte[i + ]; Array.Copy(packet, temp, i + ); return temp;}