| 403 | } |
| 404 | |
| 405 | BString KMemory::readString(U32 address) { |
| 406 | if (!address) { |
| 407 | return BString::empty; |
| 408 | } |
| 409 | BString result; |
| 410 | while (true) { |
| 411 | char ch = (char)readb(address); |
| 412 | if (ch == 0) { |
| 413 | break; |
| 414 | } |
| 415 | address++; |
| 416 | result += ch; |
| 417 | } |
| 418 | return result; |
| 419 | } |
| 420 | |
| 421 | BString KMemory::readStringW(U32 address) { |
| 422 | BString result; |
no outgoing calls
no test coverage detected