MCPcopy Index your code
hub / github.com/RustPython/RustPython / _count_to_size

Function _count_to_size

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

Source from the content-addressed store, hash-verified

636 return result
637
638def _count_to_size(count):
639 if count < 1 << 8:
640 return 1
641
642 elif count < 1 << 16:
643 return 2
644
645 elif count < 1 << 32:
646 return 4
647
648 else:
649 return 8
650
651_scalars = (str, int, float, datetime.datetime, bytes)
652

Callers 1

writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected