| 106 | } |
| 107 | |
| 108 | bool DebugInterface::ProcessMessage(uint8_t * buf, uint32_t length) |
| 109 | { |
| 110 | google::protobuf::io::ArrayInputStream ais(buf, length); |
| 111 | google::protobuf::io::CodedInputStream is(&ais); |
| 112 | DebuggerToBackend msg; |
| 113 | if (!msg.ParseFromCodedStream(&is)) { |
| 114 | Debug("Unable to decode protobuf message from coded stream."); |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | return messageHandler_(&msg); |
| 119 | } |
| 120 | |
| 121 | void DebugInterface::Disconnect() |
| 122 | { |