Reads a single character from the memory of the process. @see: L{read_char} @type lpBaseAddress: int @param lpBaseAddress: Memory address to begin reading. @rtype: int @return: Character read from the process memory. Returns zero on e
(self, lpBaseAddress)
| 2038 | return r |
| 2039 | |
| 2040 | def peek_char(self, lpBaseAddress): |
| 2041 | """ |
| 2042 | Reads a single character from the memory of the process. |
| 2043 | |
| 2044 | @see: L{read_char} |
| 2045 | |
| 2046 | @type lpBaseAddress: int |
| 2047 | @param lpBaseAddress: Memory address to begin reading. |
| 2048 | |
| 2049 | @rtype: int |
| 2050 | @return: Character read from the process memory. |
| 2051 | Returns zero on error. |
| 2052 | """ |
| 2053 | char = self.peek(lpBaseAddress, 1) |
| 2054 | if char: |
| 2055 | return ord(char) |
| 2056 | return 0 |
| 2057 | |
| 2058 | def poke_char(self, lpBaseAddress, char): |
| 2059 | """ |
no test coverage detected