MCPcopy Index your code
hub / github.com/qiyeboy/IPProxyPool / getLong3

Method getLong3

test/testIPAddress.py:139–144  ·  view source on GitHub ↗
(self, offset=0)

Source from the content-addressed store, hash-verified

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
147QQWRY_PATH = os.path.dirname(__file__) + "/../data/qqwry.dat"

Callers 2

getAreaAddrMethod · 0.95
getAddrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected