QC_StreamWriter.dox.h
namespace Qore {
class StreamWriter {
public:
constructor(Qore::OutputStream os, *string encoding);
public:
nothing f_printf(string fmt, ...);
public:
nothing f_vprintf(string fmt, any fmt_args);
public:
string getEncoding();
public:
OutputStream getOutputStream();
public:
nothing print(string str);
public:
nothing printf(string fmt, ...);
public:
nothing vprintf(string fmt, any fmt_args);
public:
nothing write(string str);
public:
nothing write(binary b);
public:
nothing writei1(int c);
public:
nothing writei2(int s);
public:
nothing writei2LSB(int s);
public:
nothing writei4(int i);
public:
nothing writei4LSB(int i);
public:
nothing writei8(int i);
public:
nothing writei8LSB(int i);
};
}
Qore::StreamWriter::f_printf
nothing f_printf(string fmt,...)
Writes a formatted string with hard field widths to an output stream; string data is converted to the...
Qore::StreamWriter::vprintf
nothing vprintf(string fmt, any fmt_args)
Writes a formatted string with soft field widths to an output stream, where the second argument is th...
Qore::StreamWriter::writei2
nothing writei2(int s)
Writes a 2-byte (16 bit) integer to the output stream in binary big-endian format.
Qore::StreamWriter::writei4LSB
nothing writei4LSB(int i)
Writes a 4-byte (32 bit) integer to the output stream in binary little-endian format.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::StreamWriter::f_vprintf
nothing f_vprintf(string fmt, any fmt_args)
Writes a formatted string with hard field widths to an output stream, where the second argument is th...
Qore::StreamWriter::writei1
nothing writei1(int c)
Writes a 1-byte signed integer to the output stream.
Qore::StreamWriter::print
nothing print(string str)
Writes string data to an output stream; string data is converted to the StreamWriter&#39;s character enco...
Qore::OutputStream
This class defines an abstract interface for output streams.
Definition: QC_OutputStream.dox.h:18
Qore::StreamWriter::getEncoding
string getEncoding()
Returns the character encoding for the StreamWriter.
Qore::StreamWriter::constructor
constructor(Qore::OutputStream os, *string encoding)
Creates the StreamWriter for writing data to the given OutputStream.
Qore::StreamWriter::writei8
nothing writei8(int i)
Writes an 8-byte (64 bit) integer to the output stream in binary big-endian format.
Qore::StreamWriter::writei4
nothing writei4(int i)
Writes a 4-byte (32 bit) integer to the output stream in binary big-endian format.
Qore::StreamWriter::getOutputStream
OutputStream getOutputStream()
Returns the OutputStream for the StreamWriter.
Qore::StreamWriter::writei2LSB
nothing writei2LSB(int s)
Writes a 2-byte (16 bit) integer to the output stream in binary little-endian format.
Qore::StreamWriter::printf
nothing printf(string fmt,...)
Writes a formatted string with soft field widths to an output stream; string data is converted to the...
Qore::StreamWriter
This class defines a stream writer for output streams.
Definition: QC_StreamWriter.dox.h:19
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::StreamWriter::writei8LSB
nothing writei8LSB(int i)
Writes an 8-byte (64 bit) integer to the output stream in binary little-endian format.
Qore::StreamWriter::write
nothing write(string str)
Writes a String to the output stream.