MCPcopy Create free account
hub / github.com/e2wugui/zeze / truncate_long

Method truncate_long

python/zeze/buffer.py:330–332  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

328
329 @staticmethod
330 def truncate_long(x):
331 x &= 0xffff_ffff_ffff_ffff
332 return x if x <= 0x7fff_ffff_ffff_ffff else x - 0x1_0000_0000_0000_0000
333
334 def read_uint(self):
335 return ByteBuffer.truncate_int(self.read_ulong())

Callers 4

check_longMethod · 0.80
check_ulongMethod · 0.80
check_skip_longMethod · 0.80
check_skip_ulongMethod · 0.80

Calls

no outgoing calls

Tested by 4

check_longMethod · 0.64
check_ulongMethod · 0.64
check_skip_longMethod · 0.64
check_skip_ulongMethod · 0.64