public static void WriteData(uint hDongle, byte[] datas) { if (datas.Length > 4096) { throw new Exception("写入的内容字节长度不能超过4096!"); } uint ret = RockeyArmHelper.Dongle_WriteData(hDongle, 4096, datas, datas.Length); if (ret != 0) { throw new Exception(RockeyArmHelper.GetErrorInfo(ret)); } }