MCPcopy Index your code
hub / github.com/python/cpython / _count_to_size

Function _count_to_size

Lib/plistlib.py:631–642  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

629 return result
630
631def _count_to_size(count):
632 if count < 1 << 8:
633 return 1
634
635 elif count < 1 << 16:
636 return 2
637
638 elif count < 1 << 32:
639 return 4
640
641 else:
642 return 8
643
644_scalars = (str, int, float, datetime.datetime, bytes)
645

Callers 1

writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…