| 1 | #include "Logan.h" |
| 2 | |
| 3 | PVOID LoganHeap::GetVirtualAddress(APU_ADDRESS ApuAddress, SIZE_T SizeInBytes) |
| 4 | { |
| 5 | if (!ApuAddress || (ApuAddress + SizeInBytes) >= _sizeInBytes) |
| 6 | return nullptr; |
| 7 | return (PVOID)((ULONG_PTR)_view + ApuAddress); |
| 8 | } |
| 9 | |
| 10 | APU_ADDRESS LoganHeap::GetAPUAddress(PVOID CpuAddress) |
| 11 | { |