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

Method _get_size

Lib/plistlib.py:504–512  ·  view source on GitHub ↗

return the size of the next object.

(self, tokenL)

Source from the content-addressed store, hash-verified

502 raise InvalidFileException()
503
504 def _get_size(self, tokenL):
505 """ return the size of the next object."""
506 if tokenL == 0xF:
507 m = self._fp.read(1)[0] & 0x3
508 s = 1 << m
509 f = '>' + _BINARY_FORMAT[s]
510 return struct.unpack(f, self._fp.read(s))[0]
511
512 return tokenL
513
514 def _read(self, size):
515 cursize = min(size, _MIN_READ_BUF_SIZE)

Callers 1

_read_objectMethod · 0.95

Calls 2

readMethod · 0.45
unpackMethod · 0.45

Tested by

no test coverage detected