MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _patchheader

Method _patchheader

tools/python-3.11.9-amd64/Lib/sunau.py:514–520  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

512 self._file.write(b'\0'*(header_size - len(self._info) - 24))
513
514 def _patchheader(self):
515 if self._form_length_pos is None:
516 raise OSError('cannot seek')
517 self._file.seek(self._form_length_pos)
518 _write_u32(self._file, self._datawritten)
519 self._datalength = self._datawritten
520 self._file.seek(0, 2)
521
522def open(f, mode=None):
523 if mode is None:

Callers 2

writeframesMethod · 0.95
closeMethod · 0.95

Calls 2

_write_u32Function · 0.85
seekMethod · 0.45

Tested by

no test coverage detected