| 44 | } |
| 45 | |
| 46 | U32 KObject::read(KThread* thread, U32 address, U32 len) { |
| 47 | U32 result = 0; |
| 48 | KMemory* memory = thread->memory; |
| 49 | |
| 50 | memory->performOnMemory(address, len, true, [&result, this](U8* ram, U32 len) { |
| 51 | U32 read = this->readNative(ram, len); |
| 52 | if ((S32)read < 0) { |
| 53 | result = read; |
| 54 | return false; |
| 55 | } |
| 56 | result += read; |
| 57 | return read == len; |
| 58 | }); |
| 59 | return result; |
| 60 | } |
| 61 | |
| 62 | U32 KObject::write(KThread* thread, U32 address, U32 len) { |
| 63 | U32 result = 0; |
nothing calls this directly
no test coverage detected