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

Method _patchheader

Lib/wave.py:641–651  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

639 self._headerwritten = True
640
641 def _patchheader(self):
642 assert self._headerwritten
643 if self._datawritten == self._datalength:
644 return
645 curpos = self._file.tell()
646 self._file.seek(self._form_length_pos, 0)
647 self._file.write(struct.pack('<L', 36 + self._datawritten))
648 self._file.seek(self._data_length_pos, 0)
649 self._file.write(struct.pack('<L', self._datawritten))
650 self._file.seek(curpos, 0)
651 self._datalength = self._datawritten
652
653
654def open(f, mode=None):

Callers 2

writeframesMethod · 0.95
closeMethod · 0.95

Calls 4

tellMethod · 0.45
seekMethod · 0.45
writeMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected