PythonQt.QtCore.QBuffer · declarations 002
Back to PythonQt.QtCore.QBuffer
readData
readData(data: str, maxlen: int) -> int
X.readData(data, maxlen) -> int
Supplemental documentation: Qt 5 reference:
[override virtual protected] qint64 QBuffer::readData(char *data, qint64 len)
Reimplements: QIODevice::readData(char *data, qint64 maxSize).
Upstream PySide2 reference signatures (binding differences may apply):
readData(self, data: str, maxlen: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qbuffer.html#readData
readLine
readLine(maxlen: Any) -> Any
X.readLine(maxlen) -> PythonQt.QtCore.QByteArray
readLineData
readLineData(data: Any, maxlen: Any) -> int
X.readLineData(data, maxlen) -> int
readyRead
readyRead(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QBuffer.readyRead; argument details are not documented.
reset
reset() -> bool
X.reset() -> bool
seek
seek(off: int) -> bool
X.seek(off) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QBuffer::seek(qint64 pos)
Reimplements: QIODevice::seek(qint64 pos).
Upstream PySide2 reference signatures (binding differences may apply):
seek(self, off: int) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qbuffer.html#seek
setBuffer
setBuffer(a: Any) -> None
X.setBuffer(a)
Supplemental documentation: Qt 5 reference:
void QBuffer::setBuffer(QByteArray *byteArray)
Makes QBuffer use the QByteArray pointed to by byteArray as its internal buffer. The caller is responsible for ensuring that byteArray remains valid until the QBuffer is destroyed, or until setBuffer() is called to change the buffer. QBuffer doesn't take ownership of the QByteArray.
Does nothing if isOpen() is true.
If you open the buffer in write-only mode or read-write mode and write something into the QBuffer, byteArray will be modified.
Example:
QByteArray byteArray("abc");
QBuffer buffer;
buffer.setBuffer(&byteArray);
buffer.open(QIODevice::WriteOnly);
buffer.seek(3);
buffer.write("def", 3);
buffer.close();
// byteArray == "abcdef"
If byteArray is nullptr, the buffer creates its own internal
QByteArray to work on. This byte
array is initially empty.
See also buffer(), setData(), and open().
Upstream PySide2 reference signatures (binding differences may apply):
setBuffer(self, a: PySide2.QtCore.QByteArray) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbuffer.html#setBuffer
setData
setData(data: Any) -> None
X.setData(data)
Supplemental documentation: Qt 5 reference:
void QBuffer::setData(const QByteArray \&data)
Sets the contents of the internal buffer to be data. This is the same as assigning data to buffer().
Does nothing if isOpen() is true.
See also data() and setBuffer().
void QBuffer::setData(const char *data, int size)
This is an overloaded function.
Sets the contents of the internal buffer to be the first size bytes of data.
Upstream PySide2 reference signatures (binding differences may apply):
setData(self, data: PySide2.QtCore.QByteArray) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbuffer.html#setData
setErrorString
setErrorString(errorString: Any) -> Any
X.setErrorString(errorString)
setOpenMode
setOpenMode(openMode: Any) -> Any
X.setOpenMode(openMode)
setTextModeEnabled
setTextModeEnabled(enabled: Any) -> Any
X.setTextModeEnabled(enabled)
size
size() -> int
X.size() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] qint64 QBuffer::size() const
Reimplements: QIODevice::size() const.
Upstream PySide2 reference signatures (binding differences may apply):
size(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qbuffer.html#size
ungetChar
ungetChar(c: Any) -> Any
X.ungetChar(c)
waitForBytesWritten
waitForBytesWritten(msecs: Any) -> bool
X.waitForBytesWritten(msecs) -> bool
waitForReadyRead
waitForReadyRead(msecs: Any) -> bool
X.waitForReadyRead(msecs) -> bool
write
write(data: Any) -> int
X.write(data) -> int
writeData
writeData(data: str, len: int) -> int
X.writeData(data, len) -> int
Supplemental documentation: Qt 5 reference:
[override virtual protected] qint64 QBuffer::writeData(const char *data, qint64 len)
Reimplements: QIODevice::writeData(const char *data, qint64 maxSize).
Upstream PySide2 reference signatures (binding differences may apply):
writeData(self, data: str, len: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qbuffer.html#writeData