| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
QC_StreamWriter.dox.h
1
2 namespace Qore {
4
19 class StreamWriter {
20
21 public:
23
26 constructor(Qore::OutputStream os, *string encoding);
27
28 public:
30
43nothing f_printf(string fmt, ...);
44
45 public:
47
61nothing f_vprintf(string fmt, any fmt_args);
62
63 public:
65
72 string getEncoding();
73
74 public:
76
82 OutputStream getOutputStream();
83
84 public:
86
97nothing print(string str);
98
99 public:
101
114nothing printf(string fmt, ...);
115
116 public:
118
132nothing vprintf(string fmt, any fmt_args);
133
134 public:
136
145nothing write(string str);
146
147 public:
149
156nothing write(binary b);
157
158 public:
160
167nothing writei1(int c);
168
169 public:
171
178nothing writei2(int s);
179
180 public:
182
189nothing writei2LSB(int s);
190
191 public:
193
200nothing writei4(int i);
201
202 public:
204
211nothing writei4LSB(int i);
212
213 public:
215
222nothing writei8(int i);
223
224 public:
226
233nothing writei8LSB(int i);
234};
235}
Qore::OutputStream
This class defines an abstract interface for output streams.
Definition QC_OutputStream.dox.h:18
Qore::StreamWriter
This class defines a stream writer for output streams.
Definition QC_StreamWriter.dox.h:19
Qore::StreamWriter::write
nothing write(string str)
Writes a String to the output stream.
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::writei2
nothing writei2(int s)
Writes a 2-byte (16 bit) integer to the output stream in binary big-endian format.
Qore::StreamWriter::getEncoding
string getEncoding()
Returns the character encoding for the StreamWriter.
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::writei8
nothing writei8(int i)
Writes an 8-byte (64 bit) integer to the output stream in binary big-endian format.
Qore::StreamWriter::getOutputStream
OutputStream getOutputStream()
Returns the OutputStream for the StreamWriter.
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::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's character enco...
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::write
nothing write(binary b)
Writes a Binary to the output stream.
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::writei4LSB
nothing writei4LSB(int i)
Writes a 4-byte (32 bit) integer to the output stream in binary little-endian format.
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::constructor
constructor(Qore::OutputStream os, *string encoding)
Creates the StreamWriter for writing data to the given OutputStream.
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::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3