QDataStream

class PyQt5.QtCore.QDataStream

C++ documentation