JosJuice 5c9bb80638 Memmap: Replace GetPointer with GetSpanForAddress
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.
2024-04-20 18:31:08 +02:00
..
2023-08-22 13:19:49 +02:00
2022-06-30 15:26:48 -05:00
2024-01-31 12:54:07 +01:00
2023-02-09 18:36:20 +13:00
2021-12-10 14:49:57 -08:00
2021-12-10 14:49:57 -08:00