MCPcopy Create free account
hub / github.com/numpy/numpy / get_remaining_size

Function get_remaining_size

numpy/core/records.py:843–849  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

841 return _array
842
843def get_remaining_size(fd):
844 pos = fd.tell()
845 try:
846 fd.seek(0, 2)
847 return fd.tell() - pos
848 finally:
849 fd.seek(pos, 0)
850
851
852@set_module("numpy.rec")

Callers 1

fromfileFunction · 0.85

Calls 1

seekMethod · 0.80

Tested by

no test coverage detected