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

Method _get_size

Lib/plistlib.py:497–505  ·  view source on GitHub ↗

return the size of the next object.

(self, tokenL)

Source from the content-addressed store, hash-verified

495 raise InvalidFileException()
496
497 def _get_size(self, tokenL):
498 """ return the size of the next object."""
499 if tokenL == 0xF:
500 m = self._fp.read(1)[0] & 0x3
501 s = 1 << m
502 f = '>' + _BINARY_FORMAT[s]
503 return struct.unpack(f, self._fp.read(s))[0]
504
505 return tokenL
506
507 def _read(self, size):
508 cursize = min(size, _MIN_READ_BUF_SIZE)

Callers 1

_read_objectMethod · 0.95

Calls 2

unpackMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected