Qore Programming Language Reference Manual  0.8.12.3
QC_StreamReader.dox.h
1 namespace Qore {
4 
18 class StreamReader {
19 
20 public:
22 
27  constructor(Qore::InputStream is, *string encoding);
28 
29 public:
31 
36 string getEncoding();
37 
38 public:
40 
49 *binary readBinary(int limit = -1);
50 
51 public:
53 
65 *string readLine(*string eol, bool trim = True);
66 
67 public:
69 
78 int readi1();
79 
80 public:
82 
91 int readi2();
92 
93 public:
95 
104 int readi2LSB();
105 
106 public:
108 
117 int readi4();
118 
119 public:
121 
130 int readi4LSB();
131 
132 public:
134 
143 int readi8();
144 
145 public:
147 
156 int readi8LSB();
157 
158 public:
160 
169 int readu1();
170 
171 public:
173 
182 int readu2();
183 
184 public:
186 
195 int readu2LSB();
196 
197 public:
199 
208 int readu4();
209 
210 public:
212 
221 int readu4LSB();
222 };
223 };
int readi4LSB()
Reads a 4-byte (32 bit) signed integer from the input stream in binary little-endian format...
int readu4LSB()
Reads a 4-byte (32 bit) unsigned integer from the input stream in binary little-endian format...
int readi8()
Reads a 8-byte (64 bit) signed integer from the input stream in binary big-endian format...
int readu4()
Reads a 4-byte (32 bit) unsigned integer from the input stream in binary big-endian format...
int readu2()
Reads a 2-byte (16 bit) unsigned integer from the input stream in binary big-endian format...
string trim(string str, *string chars)
Removes byte characters from the start and end of a string and returns the new string (also see the t...
const True
logical True
Definition: qc_qore.dox.h:94
*string readLine(*string eol, bool trim=True)
Reads a text line from the input stream.
int readi8LSB()
Reads a 8-byte (64 bit) signed integer from the input stream in binary little-endian format...
binary binary()
Always returns an empty binary object (of zero length)
int readi2()
Reads a 2-byte (16 bit) signed integer from the input stream in binary big-endian format...
string getEncoding()
Returns the character encoding for the StreamReader.
int readi2LSB()
Reads a 2-byte (16 bit) signed 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...
This class defines a stream reader for input streams.
Definition: QC_StreamReader.dox.h:18
int readu1()
Reads a 1-byte unsigned integer from the input stream.
constructor(Qore::InputStream is, *string encoding)
Creates the StreamReader for reading data from the given InputStream.
int readu2LSB()
Reads a 2-byte (16 bit) unsigned integer from the input stream in binary little-endian format...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
*binary readBinary(int limit=-1)
Reads binary data from the input stream up to a given limit.
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:8
int readi1()
Reads a 1-byte signed integer from the input stream.