(data)
| 167 | |
| 168 | |
| 169 | def _dataIsString(data): |
| 170 | data = "(" + data + ")" |
| 171 | |
| 172 | result = fb.evaluateExpressionValue( |
| 173 | "(NSString*)[[NSString alloc] initWithData:" + data + " encoding:4]" |
| 174 | ) |
| 175 | |
| 176 | if result.GetError() is not None and str(result.GetError()) != "success": |
| 177 | return False |
| 178 | else: |
| 179 | isString = result.GetValueAsUnsigned() != 0 |
| 180 | return isString |
| 181 | |
| 182 | |
| 183 | def _visualize(target): |