/// <summary> /// 发送字节数据 /// </summary> /// <returns>是否发送成功【成功发送的字节数据小于0,则视为发送失败】</returns> public bool Write(byte[] data, int len = 0) { try { if (CurAdbSocket.Connected) { var count = CurAdbSocket.Send(data, len > 0 ? len : data.Length, SocketFlags.None); if (count > 0) { return(true); } } } catch (Exception ex) { LoggerManagerSingle.Instance.Error(ex); } return(false); }