MCPcopy Create free account
hub / github.com/qiyeboy/IPProxyPool / getLong3

Method getLong3

util/IPAddress.py:140–145  ·  view source on GitHub ↗
(self, offset=0)

Source from the content-addressed store, hash-verified

138 return ((ip >> 24) & 0xff) | ((ip & 0xff) << 24) | ((ip >> 8) & 0xff00) | ((ip & 0xff00) << 8)
139
140 def getLong3(self, offset=0):
141 if offset:
142 self.ipdb.seek(offset)
143 str = self.ipdb.read(3)
144 (a, b) = struct.unpack('HB', str)
145 return (b << 16) + a
146
147
148

Callers 2

getAreaAddrMethod · 0.95
getAddrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected