Qore Programming Language Reference Manual 1.19.2
Loading...
Searching...
No Matches
QC_StreamReader.dox.h
1
2namespace Qore {
4
19
20public:
22
25 constructor(Qore::InputStream is, *string encoding);
26
27public:
29
34string getEncoding();
35
36public:
38
45
46public:
48
61*binary readBinary(int limit = -1);
62
63public:
65
79*string readLine(*string eol, bool trim = True);
80
81public:
83
98*string readString(int limit = -1);
99
100public:
102
113int readi1();
114
115public:
117
128int readi2();
129
130public:
132
144
145public:
147
158int readi4();
159
160public:
162
174
175public:
177
188int readi8();
189
190public:
192
204
205public:
207
218int readu1();
219
220public:
222
233int readu2();
234
235public:
237
249
250public:
252
263int readu4();
264
265public:
267
279};
280}
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:19
This class defines a stream reader for input streams.
Definition: QC_StreamReader.dox.h:18
int readu4()
Reads a 4-byte (32 bit) unsigned integer from the input stream in binary big-endian format.
int readi2LSB()
Reads a 2-byte (16 bit) signed integer from the input stream in binary little-endian format.
int readi8LSB()
Reads a 8-byte (64 bit) signed integer from the input stream in binary little-endian format.
*string readString(int limit=-1)
Reads a string from the input stream.
int readu4LSB()
Reads a 4-byte (32 bit) unsigned integer from the input stream in binary little-endian format.
int readu2LSB()
Reads a 2-byte (16 bit) unsigned integer from the input stream in binary little-endian format.
int readi4()
Reads a 4-byte (32 bit) signed integer from the input stream in binary big-endian format.
int readi1()
Reads a 1-byte signed integer from the input stream.
int readi8()
Reads a 8-byte (64 bit) signed integer from the input stream in binary big-endian format.
int readi2()
Reads a 2-byte (16 bit) signed integer from the input stream in binary big-endian format.
constructor(Qore::InputStream is, *string encoding)
Creates the StreamReader for reading data from the given InputStream.
int readu1()
Reads a 1-byte unsigned integer from the input stream.
InputStream getInputStream()
Returns the InputStream for the StreamReader.
int readu2()
Reads a 2-byte (16 bit) unsigned integer from the input stream in binary big-endian format.
*string readLine(*string eol, bool trim=True)
Reads a text line from the input stream.
string getEncoding()
Returns the character encoding for the StreamReader.
*binary readBinary(int limit=-1)
Reads binary data from the input stream up to a given limit.
int readi4LSB()
Reads a 4-byte (32 bit) signed integer from the input stream in binary little-endian format.
const True
logical True
Definition: qc_qore.dox.h:98
nothing trim()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
binary binary()
Always returns an empty binary object (of zero length)
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2