(self, word, alignment=0)
| 938 | cb(self, r.start, r.memory.data_size, r.memory.rva) |
| 939 | |
| 940 | def FindWord(self, word, alignment=0): |
| 941 | def search_inside_region(reader, start, size, location): |
| 942 | location = (location + alignment) & ~alignment |
| 943 | for i in range(size - self.MachinePointerSize()): |
| 944 | loc = location + i |
| 945 | if reader._ReadWord(loc) == word: |
| 946 | slot = start + (loc - location) |
| 947 | print("%s: %s" % (reader.FormatIntPtr(slot), |
| 948 | reader.FormatIntPtr(word))) |
| 949 | self.ForEachMemoryRegion(search_inside_region) |
| 950 | |
| 951 | def FindPtr(self, expected_value, start, end): |
| 952 | ptr_size = self.MachinePointerSize() |
no test coverage detected