From 87d29563e3ccdeb7fea0197e262e667ef323ff9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 14:56:09 +0900 Subject: Rename utility class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/ntqbuffer.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/ntqbuffer.html') diff --git a/doc/html/ntqbuffer.html b/doc/html/ntqbuffer.html index 0472498a6..a3510d7cd 100644 --- a/doc/html/ntqbuffer.html +++ b/doc/html/ntqbuffer.html @@ -51,7 +51,7 @@ body { background: #ffffff; color: black; } -The TQBuffer class is an I/O device that operates on a TQByteArray. +The TQBuffer class is an I/O device that operates on a TQByteArray.

TQBuffer is used to read and write to a memory buffer. It is @@ -68,21 +68,21 @@ array because TQByteArray is explicitly buffer must be closed before reopening or calling setBuffer().

A common way to use TQBuffer is through TQDataStream or TQTextStream, which have constructors that take a TQBuffer parameter. For convenience, there are also TQDataStream and -TQTextStream constructors that take a TQByteArray parameter. These +TQTextStream constructors that take a TQByteArray parameter. These constructors create and open an internal TQBuffer.

Note that TQTextStream can also operate on a TQString (a Unicode string); a TQBuffer cannot.

You can also use TQBuffer directly through the standard TQIODevice functions readBlock(), writeBlock() readLine(), at(), getch(), putch() and ungetch(). -

See also TQFile, TQDataStream, TQTextStream, TQByteArray, Shared Classes, Collection Classes, and Input/Output and Networking. +

See also TQFile, TQDataStream, TQTextStream, TQByteArray, Shared Classes, Collection Classes, and Input/Output and Networking.


Member Function Documentation

TQBuffer::TQBuffer ()

Constructs an empty buffer. -

TQBuffer::TQBuffer ( TQByteArray buf ) +

TQBuffer::TQBuffer ( TQByteArray buf )

Constructs a buffer that operates on buf.

If you open the buffer in write mode (IO_WriteOnly or @@ -90,7 +90,7 @@ Constructs a buffer that operates on buf. will be modified.

Example:

-    TQCString str = "abc";
+    TQCString str = "abc";
     TQBuffer b( str );
     b.open( IO_WriteOnly );
     b.at( 3 ); // position at the 4th character (the terminating \0)
@@ -105,19 +105,19 @@ will be modified.
 
 Destroys the buffer.
 
-

TQByteArray TQBuffer::buffer () const +

TQByteArray TQBuffer::buffer () const

Returns this buffer's byte array.

See also setBuffer(). -

bool TQBuffer::setBuffer ( TQByteArray buf ) +

bool TQBuffer::setBuffer ( TQByteArray buf )

Replaces the buffer's contents with buf and returns TRUE.

Does nothing (and returns FALSE) if isOpen() is TRUE.

Note that if you open the buffer in write mode (IO_WriteOnly or IO_ReadWrite) and write something into the buffer, buf is also -modified because TQByteArray is an explicitly shared class. +modified because TQByteArray is an explicitly shared class.

See also buffer(), open(), and close().

TQ_LONG TQBuffer::writeBlock ( const char * p, TQ_ULONG len ) [virtual] @@ -129,7 +129,7 @@ buffer if necessary. Returns the number of bytes actually written.

See also readBlock().

Reimplemented from TQIODevice. -

TQ_LONG TQBuffer::writeBlock ( const TQByteArray & data ) +

TQ_LONG TQBuffer::writeBlock ( const TQByteArray & data )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

This convenience function is the same as calling -- cgit v1.2.3