summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqbuffer.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqbuffer.3qt')
-rw-r--r--doc/man/man3/tqbuffer.3qt32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/man/man3/tqbuffer.3qt b/doc/man/man3/tqbuffer.3qt
index 150ee6243..cd6451e71 100644
--- a/doc/man/man3/tqbuffer.3qt
+++ b/doc/man/man3/tqbuffer.3qt
@@ -7,7 +7,7 @@
.ad l
.nh
.SH NAME
-QBuffer \- I/O device that operates on a QByteArray
+QBuffer \- I/O device that operates on a TQByteArray
.SH SYNOPSIS
All the functions in this class are reentrant when TQt is built with thread support.</p>
.PP
@@ -21,44 +21,44 @@ Inherits TQIODevice.
.BI "\fBQBuffer\fR ()"
.br
.ti -1c
-.BI "\fBQBuffer\fR ( QByteArray buf )"
+.BI "\fBQBuffer\fR ( TQByteArray buf )"
.br
.ti -1c
.BI "\fB~QBuffer\fR ()"
.br
.ti -1c
-.BI "QByteArray \fBbuffer\fR () const"
+.BI "TQByteArray \fBbuffer\fR () const"
.br
.ti -1c
-.BI "bool \fBsetBuffer\fR ( QByteArray buf )"
+.BI "bool \fBsetBuffer\fR ( TQByteArray buf )"
.br
.ti -1c
.BI "virtual TQ_LONG \fBwriteBlock\fR ( const char * p, TQ_ULONG len )"
.br
.ti -1c
-.BI "TQ_LONG \fBwriteBlock\fR ( const QByteArray & data )"
+.BI "TQ_LONG \fBwriteBlock\fR ( const TQByteArray & data )"
.br
.in -1c
.SH DESCRIPTION
-The QBuffer class is an I/O device that operates on a QByteArray.
+The QBuffer class is an I/O device that operates on a TQByteArray.
.PP
-QBuffer is used to read and write to a memory buffer. It is normally used with a TQTextStream or a QDataStream. QBuffer has an associated QByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written.
+QBuffer is used to read and write to a memory buffer. It is normally used with a TQTextStream or a QDataStream. QBuffer has an associated TQByteArray which holds the buffer data. The size() of the buffer is automatically adjusted as data is written.
.PP
-The constructor \fCQBuffer(QByteArray)\fR creates a QBuffer using an existing byte array. The byte array can also be set with setBuffer(). Writing to the QBuffer will modify the original byte array because QByteArray is explicitly shared.
+The constructor \fCQBuffer(TQByteArray)\fR creates a QBuffer using an existing byte array. The byte array can also be set with setBuffer(). Writing to the QBuffer will modify the original byte array because TQByteArray is explicitly shared.
.PP
Use open() to open the buffer before use and to set the mode (read-only, write-only, etc.). close() closes the buffer. The buffer must be closed before reopening or calling setBuffer().
.PP
-A common way to use QBuffer is through QDataStream or TQTextStream, which have constructors that take a QBuffer parameter. For convenience, there are also QDataStream and TQTextStream constructors that take a QByteArray parameter. These constructors create and open an internal QBuffer.
+A common way to use QBuffer is through QDataStream or TQTextStream, which have constructors that take a QBuffer parameter. For convenience, there are also QDataStream and TQTextStream constructors that take a TQByteArray parameter. These constructors create and open an internal QBuffer.
.PP
Note that TQTextStream can also operate on a TQString (a Unicode string); a QBuffer cannot.
.PP
You can also use QBuffer directly through the standard TQIODevice functions readBlock(), writeBlock() readLine(), at(), getch(), putch() and ungetch().
.PP
-See also QFile, QDataStream, TQTextStream, QByteArray, Shared Classes, Collection Classes, and Input/Output and Networking.
+See also QFile, QDataStream, TQTextStream, TQByteArray, Shared Classes, Collection Classes, and Input/Output and Networking.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QBuffer::QBuffer ()"
Constructs an empty buffer.
-.SH "QBuffer::QBuffer ( QByteArray buf )"
+.SH "QBuffer::QBuffer ( TQByteArray buf )"
Constructs a buffer that operates on \fIbuf\fR.
.PP
If you open the buffer in write mode (<a href="ntqfile.html#open">IO_WriteOnly</a> or IO_ReadWrite) and write something into the buffer, \fIbuf\fR will be modified.
@@ -67,7 +67,7 @@ Example:
.PP
.nf
.br
- QCString str = "abc";
+ TQCString str = "abc";
.br
QBuffer b( str );
.br
@@ -86,16 +86,16 @@ Example:
See also setBuffer().
.SH "QBuffer::~QBuffer ()"
Destroys the buffer.
-.SH "QByteArray QBuffer::buffer () const"
+.SH "TQByteArray QBuffer::buffer () const"
Returns this buffer's byte array.
.PP
See also setBuffer().
-.SH "bool QBuffer::setBuffer ( QByteArray buf )"
+.SH "bool QBuffer::setBuffer ( TQByteArray buf )"
Replaces the buffer's contents with \fIbuf\fR and returns TRUE.
.PP
Does nothing (and returns FALSE) if isOpen() is TRUE.
.PP
-Note that if you open the buffer in write mode (<a href="ntqfile.html#open">IO_WriteOnly</a> or IO_ReadWrite) and write something into the buffer, \fIbuf\fR is also modified because QByteArray is an explicitly shared class.
+Note that if you open the buffer in write mode (<a href="ntqfile.html#open">IO_WriteOnly</a> or IO_ReadWrite) and write something into the buffer, \fIbuf\fR is also modified because TQByteArray is an explicitly shared class.
.PP
See also buffer(), open(), and close().
.SH "TQ_LONG QBuffer::writeBlock ( const char * p, TQ_ULONG len )\fC [virtual]\fR"
@@ -106,7 +106,7 @@ Returns -1 if an error occurred.
See also readBlock().
.PP
Reimplemented from TQIODevice.
-.SH "TQ_LONG QBuffer::writeBlock ( const QByteArray & data )"
+.SH "TQ_LONG QBuffer::writeBlock ( const TQByteArray & data )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
This convenience function is the same as calling