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