DbgMemRead
函数描述。
bool DbgMemRead( duint va, void* dest, duint size );
参数
va
Virtual address to sourcedest
Pointer to pre allocated buffer of size size
size
Number of bytes that should be read
返回值
成功时返回 true。
示例
// read user selected data from disassembly window SELECTIONDATA sel; GuiSelectionGet(GUI_DISASSEMBLY, &sel); uint16_t size = sel.end - sel.start + 1; uint8_t* dest = new uint8_t[size]; bool success = DbgMemRead(sel.start, dest, size); // on success, the selected data is stored in dest