| 79 | } |
| 80 | |
| 81 | std::string MemoryPatch::get_CurrBytes() const |
| 82 | { |
| 83 | if (!isValid()) |
| 84 | return ""; |
| 85 | |
| 86 | std::vector<uint8_t> buffer(_size); |
| 87 | _pMem->Read(_address, &buffer[0], _size); |
| 88 | |
| 89 | return KittyUtils::Data::toHex(&buffer[0], _size); |
| 90 | } |
| 91 | |
| 92 | std::string MemoryPatch::get_OrigBytes() const |
| 93 | { |