Qore Programming Language Reference Manual  0.8.13
QC_StreamWriter.dox.h
1 namespace Qore {
4 
19 class StreamWriter {
20 
21 public:
23 
26  constructor(Qore::OutputStream os, *string encoding);
27 
28 public:
30 
43 nothing f_printf(string fmt, ...);
44 
45 public:
47 
61 nothing f_vprintf(string fmt, any fmt_args);
62 
63 public:
65 
72 string getEncoding();
73 
74 public:
76 
87 nothing print(string str);
88 
89 public:
91 
104 nothing printf(string fmt, ...);
105 
106 public:
108 
122 nothing vprintf(string fmt, any fmt_args);
123 
124 public:
126 
135 nothing write(string str);
136 
137 public:
139 
146 nothing write(binary b);
147 
148 public:
150 
157 nothing writei1(int c);
158 
159 public:
161 
168 nothing writei2(int s);
169 
170 public:
172 
179 nothing writei2LSB(int s);
180 
181 public:
183 
190 nothing writei4(int i);
191 
192 public:
194 
201 nothing writei4LSB(int i);
202 
203 public:
205 
212 nothing writei8(int i);
213 
214 public:
216 
223 nothing writei8LSB(int i);
224 };
225 };
nothing f_printf(string fmt,...)
Writes a formatted string with hard field widths to an output stream; string data is converted to the...
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...
nothing writei2(int s)
Writes a 2-byte (16 bit) integer to the output stream in binary big-endian format.
nothing writei4LSB(int i)
Writes a 4-byte (32 bit) integer to the output stream in binary little-endian format.
binary binary()
Always returns an empty binary object (of zero length)
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...
nothing writei1(int c)
Writes a 1-byte integer to the output stream.
nothing print(string str)
Writes string data to an output stream; string data is converted to the StreamWriter's character enco...
This class defines an abstract interface for output streams.
Definition: QC_OutputStream.dox.h:12
string getEncoding()
Returns the character encoding for the StreamWriter.
constructor(Qore::OutputStream os, *string encoding)
Creates the StreamWriter for writing data to the given OutputStream.
nothing writei8(int i)
Writes an 8-byte (64 bit) integer to the output stream in binary big-endian format.
nothing writei4(int i)
Writes a 4-byte (32 bit) integer to the output stream in binary big-endian format.
nothing writei2LSB(int s)
Writes a 2-byte (16 bit) integer to the output stream in binary little-endian format.
nothing printf(string fmt,...)
Writes a formatted string with soft field widths to an output stream; string data is converted to the...
This class defines a stream writer for output streams.
Definition: QC_StreamWriter.dox.h:19
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
nothing writei8LSB(int i)
Writes an 8-byte (64 bit) integer to the output stream in binary little-endian format.
nothing write(string str)
Writes a String to the output stream.