Qore Programming Language Reference Manual  0.8.13.4
QC_StreamReader.dox.h
1 namespace Qore {
4 
18 class StreamReader {
19 
20 public:
22 
25  constructor(Qore::InputStream is, *string encoding);
26 
27 public:
29 
34 string getEncoding();
35 
36 public:
38 
51 *binary readBinary(int limit = -1);
52 
53 public:
55 
69 *string readLine(*string eol, bool trim = True);
70 
71 public:
73 
88 *string readString(int limit = -1);
89 
90 public:
92 
103 int readi1();
104 
105 public:
107 
118 int readi2();
119 
120 public:
122 
133 int readi2LSB();
134 
135 public:
137 
148 int readi4();
149 
150 public:
152 
163 int readi4LSB();
164 
165 public:
167 
178 int readi8();
179 
180 public:
182 
193 int readi8LSB();
194 
195 public:
197 
208 int readu1();
209 
210 public:
212 
223 int readu2();
224 
225 public:
227 
238 int readu2LSB();
239 
240 public:
242 
253 int readu4();
254 
255 public:
257 
268 int readu4LSB();
269 };
270 };
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
*string readString(int limit=-1)
Reads a string from the input stream.
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:12
int readi1()
Reads a 1-byte signed integer from the input stream.