PythonQt.QtCore.QDataStream · declarations 002
Back to PythonQt.QtCore.QDataStream
readBool
readBool() -> bool
X.readBool() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
readBool(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readBool
readDouble
readDouble() -> float
X.readDouble() -> float
Upstream PySide2 reference signatures (binding differences may apply):
readDouble(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readDouble
readFloat
readFloat() -> float
X.readFloat() -> float
Upstream PySide2 reference signatures (binding differences may apply):
readFloat(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readFloat
readInt16
readInt16() -> int
X.readInt16() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readInt16(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readInt16
readInt32
readInt32() -> int
X.readInt32() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readInt32(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readInt32
readInt64
readInt64() -> int
X.readInt64() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readInt64(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readInt64
readInt8
readInt8() -> int
X.readInt8() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readInt8(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readInt8
readQChar
readQChar() -> str
X.readQChar()
Upstream PySide2 reference signatures (binding differences may apply):
readQChar(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readQChar
readQString
readQString() -> str
X.readQString() -> str
Upstream PySide2 reference signatures (binding differences may apply):
readQString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readQString
readQStringList
readQStringList() -> tuple
X.readQStringList() -> tuple
Upstream PySide2 reference signatures (binding differences may apply):
readQStringList(self) -> typing.List[str]
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readQStringList
readQVariant
readQVariant() -> Any
X.readQVariant() -> object
Upstream PySide2 reference signatures (binding differences may apply):
readQVariant(self) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readQVariant
readRawData
readRawData(len: int) -> int
X.readRawData(len)
Supplemental documentation: Qt 5 reference:
int QDataStream::readRawData(char *s, int len)
Reads at most len bytes from the stream into s and returns the number of bytes read. If an error occurs, this function returns -1.
The buffer s must be preallocated. The data is not decoded.
See also readBytes(), QIODevice::read(), and writeRawData().
Upstream PySide2 reference signatures (binding differences may apply):
readRawData(self, arg__1: str, len: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readRawData
readString
readString() -> str
X.readString() -> str
Upstream PySide2 reference signatures (binding differences may apply):
readString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readString
readUInt16
readUInt16() -> int
X.readUInt16() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readUInt16(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readUInt16
readUInt32
readUInt32() -> int
X.readUInt32() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readUInt32(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readUInt32
readUInt64
readUInt64() -> int
X.readUInt64() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readUInt64(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readUInt64
readUInt8
readUInt8() -> int
X.readUInt8() -> int
Upstream PySide2 reference signatures (binding differences may apply):
readUInt8(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#readUInt8
resetStatus
resetStatus() -> None
X.resetStatus()
Supplemental documentation: Qt 5 reference:
void QDataStream::resetStatus()
Resets the status of the data stream.
See also Status, status(), and setStatus().
Upstream PySide2 reference signatures (binding differences may apply):
resetStatus(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#resetStatus
setByteOrder
setByteOrder(arg__1: Any) -> None
X.setByteOrder(arg__1)
Supplemental documentation: Qt 5 reference:
void QDataStream::setByteOrder(QDataStream::ByteOrder bo)
Sets the serialization byte order to bo.
The bo parameter can be QDataStream::BigEndian or QDataStream::LittleEndian.
The default setting is big-endian. We recommend leaving this setting unless you have special requirements.
See also byteOrder().
Upstream PySide2 reference signatures (binding differences may apply):
setByteOrder(self, arg__1: PySide2.QtCore.QDataStream.ByteOrder) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#setByteOrder
setDevice
setDevice(arg__1: Any) -> None
X.setDevice(arg__1)
Supplemental documentation: Qt 5 reference:
void QDataStream::setDevice(QIODevice *d)
void QDataStream::setDevice(QIODevice *d)
Sets the I/O device to d, which can be nullptr to unset to current I/O device.
See also device().
Upstream PySide2 reference signatures (binding differences may apply):
setDevice(self, arg__1: PySide2.QtCore.QIODevice) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#setDevice
setFloatingPointPrecision
setFloatingPointPrecision(precision: Any) -> None
X.setFloatingPointPrecision(precision)
Supplemental documentation: Qt 5 reference:
void QDataStream::setFloatingPointPrecision(QDataStream::FloatingPointPrecision precision)
Sets the floating point precision of the data stream to precision. If the floating point precision is DoublePrecision and the version of the data stream is Qt_4_6 or higher, all floating point numbers will be written and read with 64-bit precision. If the floating point precision is SinglePrecision and the version is Qt_4_6 or higher, all floating point numbers will be written and read with 32-bit precision.
For versions prior to Qt_4_6, the precision of floating point numbers in the data stream depends on the stream operator called.
The default is DoublePrecision.
Note that this property does not affect the serialization or deserialization of
qfloat16 instances.
Warning: This property must be set to the same value on the object that writes and the object that reads the data stream.
This function was introduced in Qt 4.6.
See also floatingPointPrecision().
Upstream PySide2 reference signatures (binding differences may apply):
setFloatingPointPrecision(self, precision: PySide2.QtCore.QDataStream.FloatingPointPrecision) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#setFloatingPointPrecision
setStatus
setStatus(status: Any) -> None
X.setStatus(status)
Supplemental documentation: Qt 5 reference:
void QDataStream::setStatus(QDataStream::Status status)
Sets the status of the data stream to the status given.
Subsequent calls to setStatus() are ignored until resetStatus() is called.
See also Status, status(), and resetStatus().
Upstream PySide2 reference signatures (binding differences may apply):
setStatus(self, status: PySide2.QtCore.QDataStream.Status) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#setStatus
setVersion
setVersion(arg__1: int) -> None
X.setVersion(arg__1)
Supplemental documentation: Qt 5 reference:
void QDataStream::setVersion(int v)
Sets the version number of the data serialization format to v, a value of the Version enum.
You don't have to set a version if you are using the current version of Qt, but for your own custom binary formats we recommend that you do; see Versioning in the Detailed Description.
To accommodate new functionality, the datastream serialization format of some Qt classes has changed in some versions of Qt. If you want to read data that was created by an earlier version of Qt, or write data that can be read by a program that was compiled with an earlier version of Qt, use this function to modify the serialization format used by QDataStream.
The Version enum provides symbolic constants for the different versions of Qt. For example:
QDataStream out(file);
out.setVersion(QDataStream::Qt_4_0);
See also version() and Version.
Upstream PySide2 reference signatures (binding differences may apply):
setVersion(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#setVersion
skipRawData
skipRawData(len: int) -> int
X.skipRawData(len) -> int
Supplemental documentation: Qt 5 reference:
int QDataStream::skipRawData(int len)
Skips len bytes from the device. Returns the number of bytes actually skipped, or -1 on error.
This is equivalent to calling readRawData() on a buffer of length len and ignoring the buffer.
This function was introduced in Qt 4.1.
See also QIODevice::seek().
Upstream PySide2 reference signatures (binding differences may apply):
skipRawData(self, len: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#skipRawData
status
status() -> Any
X.status()
Supplemental documentation: Qt 5 reference:
QDataStream::Status QDataStream::status() const
Returns the status of the data stream.
See also Status, setStatus(), and resetStatus().
Upstream PySide2 reference signatures (binding differences may apply):
status(self) -> PySide2.QtCore.QDataStream.Status
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#status
unsetDevice
unsetDevice() -> None
X.unsetDevice()
Upstream PySide2 reference signatures (binding differences may apply):
unsetDevice(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#unsetDevice
version
version() -> int
X.version() -> int
Supplemental documentation: Qt 5 reference:
int QDataStream::version() const
Returns the version number of the data serialization format.
See also setVersion() and Version.
Upstream PySide2 reference signatures (binding differences may apply):
version(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#version
writeBool
writeBool(v: Any) -> None
X.writeBool(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeBool(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeBool
writeDouble
writeDouble(v: Any) -> None
X.writeDouble(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeDouble(self, arg__1: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeDouble
writeFloat
writeFloat(v: Any) -> None
X.writeFloat(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeFloat(self, arg__1: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeFloat
writeInt16
writeInt16(v: Any) -> None
X.writeInt16(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeInt16(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeInt16
writeInt32
writeInt32(v: Any) -> None
X.writeInt32(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeInt32(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeInt32
writeInt64
writeInt64(v: Any) -> None
X.writeInt64(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeInt64(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeInt64
writeInt8
writeInt8(v: Any) -> None
X.writeInt8(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeInt8(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeInt8
writeQChar
writeQChar(v: Any) -> None
X.writeQChar(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeQChar(self, arg__1: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeQChar
writeQString
writeQString(v: Any) -> None
X.writeQString(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeQString(self, arg__1: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeQString
writeQStringList
writeQStringList(v: Any) -> None
X.writeQStringList(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeQStringList(self, arg__1: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeQStringList
writeQVariant
writeQVariant(v: Any) -> None
X.writeQVariant(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeQVariant(self, arg__1: typing.Any) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeQVariant
writeRawData
writeRawData(o: Any) -> int
X.writeRawData(o) -> int
Supplemental documentation: Qt 5 reference:
int QDataStream::writeRawData(const char *s, int len)
Writes len bytes from s to the stream. Returns the number of bytes actually written, or -1 on error. The data is not encoded.
See also writeBytes(), QIODevice::write(), and readRawData().
Upstream PySide2 reference signatures (binding differences may apply):
writeRawData(self, arg__1: str, len: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeRawData
writeString
writeString(v: Any) -> None
X.writeString(v)
Upstream PySide2 reference signatures (binding differences may apply):
writeString(self, arg__1: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatastream.html#writeString