MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / strlen

Method strlen

source/kernel/kmemory.cpp:391–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391int 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
405BString KMemory::readString(U32 address) {
406 if (!address) {

Callers 8

marshalppFunction · 0.80
marshalszArrayFunction · 0.80
marshalszFunction · 0.80
vk_DebugReportMessageEXTFunction · 0.80
createMethod · 0.80
socketAddressNameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected