| 201 | } |
| 202 | |
| 203 | bool any::isInBuffer(void* ptr) const { |
| 204 | auto addr = reinterpret_cast<uintptr_t>(ptr); |
| 205 | return addr >= reinterpret_cast<uintptr_t>(buffer) && |
| 206 | addr < reinterpret_cast<uintptr_t>(buffer + sizeof(buffer)); |
| 207 | } |
| 208 | |
| 209 | } // namespace dap |
| 210 |