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

Method readString

source/kernel/kmemory.cpp:405–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405BString 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
421BString KMemory::readStringW(U32 address) {
422 BString result;

Callers 15

hasProcAddressFunction · 0.45
x11_InternAtomsFunction · 0.45
x11_QueryExtensionFunction · 0.45
internal_writeMethod · 0.45
syscall_openFunction · 0.45
syscall_linkFunction · 0.45
syscall_unlinkFunction · 0.45
readStringArrayFunction · 0.45
syscall_execveFunction · 0.45
syscall_chdirFunction · 0.45
syscall_chmodFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected