private static void Main(string[] args) { var tcpClient = new TcpClient("localhost", 1234); var gdbClient = new GDBClient(); gdbClient.Stream = new GDBNetworkStream(tcpClient.Client, true); }
public ulong GetInteger(int index, uint size) { index *= 2; ulong value = 0; for (int i = index + ((int)size * 2) - 2; i >= index; i -= 2) { var b = GDBClient.HexToDecimal(ResponseData[i], ResponseData[i + 1]); value <<= 8; value |= b; } return(value); }
public byte GetByte(int i) { return(GDBClient.HexToDecimal(ResponseData[i * 2], ResponseData[(i * 2) + 1])); }