private static byte[] Decode(byte[] packet)
{
    var i = packet.Length - 1;
    while (packet[i] == 0)
    {
        --i;
    }
    var temp = new byte[i + 1];
    Array.Copy(packet, temp, i + 1);
    return temp;
}

 

相关文章:

  • 2021-11-02
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案