mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-19 03:42:36 +00:00
To ensure memory safety, callers of GetPointer have to perform a bounds check. But how is this bounds check supposed to be performed? GetPointerForRange contained one implementation of a bounds check, but it was cumbersome, and it also isn't obvious why it's correct. To make doing the right thing easier, this commit changes GetPointer to return a span that tells the caller how many bytes it's allowed to access. |
||
|---|---|---|
| .. | ||
| D3D | ||
| D3D12 | ||
| D3DCommon | ||
| Metal | ||
| Null | ||
| OGL | ||
| Software | ||
| Vulkan | ||
| CMakeLists.txt | ||