class MockMemory

Defined at line 18 of file ../../src/developer/debug/shared/mock_memory.h

This helper class keeps blocks of memory that have been manually added and

can reply with subsets of those blocks. This is in turn used by other mocks

that need to respond with memory queries.

Public Methods

void AddMemory (uint64_t address, std::vector<uint8_t> data)

Sets a memory block that will be returned.

Defined at line 11 of file ../../src/developer/debug/shared/mock_memory.cc

std::vector<uint8_t> ReadMemory (uint64_t address, uint32_t size)

Query for memory. This will do short reads if the requested size goes

beyond a valid block, and will return an empty vector if the requested

address isn't set.

Defined at line 15 of file ../../src/developer/debug/shared/mock_memory.cc