When splitting a memory read into numerous reads (in the ReadTargetMemory Insight worker task), use the page size if it's available and not less than 256 bytes.

This commit is contained in:
Nav
2022-12-17 14:45:54 +00:00
parent a1defa02c0
commit 9097e37375
2 changed files with 19 additions and 3 deletions

View File

@@ -65,12 +65,12 @@ namespace Bloom::Targets
{
TargetMemoryType type;
TargetMemoryAddressRange addressRange;
std::optional<std::uint32_t> pageSize;
std::optional<TargetMemorySize> pageSize;
TargetMemoryDescriptor(
TargetMemoryType type,
TargetMemoryAddressRange addressRange,
std::optional<std::uint32_t> pageSize = std::nullopt
std::optional<TargetMemorySize> pageSize = std::nullopt
)
: type(type)
, addressRange(addressRange)