(self, offset=0)
| 137 | return ((ip >> 24) & 0xff) | ((ip & 0xff) << 24) | ((ip >> 8) & 0xff00) | ((ip & 0xff00) << 8) |
| 138 | |
| 139 | def getLong3(self, offset=0): |
| 140 | if offset: |
| 141 | self.ipdb.seek(offset) |
| 142 | str = self.ipdb.read(3) |
| 143 | (a, b) = struct.unpack('HB', str) |
| 144 | return (b << 16) + a |
| 145 | |
| 146 | |
| 147 | QQWRY_PATH = os.path.dirname(__file__) + "/../data/qqwry.dat" |
no outgoing calls
no test coverage detected