| 389 | } |
| 390 | |
| 391 | int KMemory::strlen(U32 address) { |
| 392 | int result = 0; |
| 393 | if (!address) { |
| 394 | return 0; |
| 395 | } |
| 396 | while (true) { |
| 397 | if (readb(address) == 0) { |
| 398 | return result; |
| 399 | } |
| 400 | address++; |
| 401 | result++; |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | BString KMemory::readString(U32 address) { |
| 406 | if (!address) { |
no outgoing calls
no test coverage detected