Loading...
Searching...
No Matches
QC_StreamReader.dox.h
namespace Qore {
class StreamReader {
public:
constructor(Qore::InputStream is, *string encoding);
public:
string getEncoding();
public:
InputStream getInputStream();
public:
*binary readBinary(int limit = -1);
public:
*string readLine(*string eol, bool trim = True);
public:
*string readString(int limit = -1);
public:
int readi1();
public:
int readi2();
public:
int readi2LSB();
public:
int readi4();
public:
int readi4LSB();
public:
int readi8();
public:
int readi8LSB();
public:
int readu1();
public:
int readu2();
public:
int readu2LSB();
public:
int readu4();
public:
int readu4LSB();
};
}
Qore::InputStream
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:19
Qore::StreamReader
This class defines a stream reader for input streams.
Definition: QC_StreamReader.dox.h:18
Qore::StreamReader::readu4
int readu4()
Reads a 4-byte (32 bit) unsigned integer from the input stream in binary big-endian format.
Qore::StreamReader::readi2LSB
int readi2LSB()
Reads a 2-byte (16 bit) signed integer from the input stream in binary little-endian format.
Qore::StreamReader::readi8LSB
int readi8LSB()
Reads a 8-byte (64 bit) signed integer from the input stream in binary little-endian format.
Qore::StreamReader::readString
*string readString(int limit=-1)
Reads a string from the input stream.
Qore::StreamReader::readu4LSB
int readu4LSB()
Reads a 4-byte (32 bit) unsigned integer from the input stream in binary little-endian format.
Qore::StreamReader::readu2LSB
int readu2LSB()
Reads a 2-byte (16 bit) unsigned integer from the input stream in binary little-endian format.
Qore::StreamReader::readi4
int readi4()
Reads a 4-byte (32 bit) signed integer from the input stream in binary big-endian format.
Qore::StreamReader::readi1
int readi1()
Reads a 1-byte signed integer from the input stream.
Qore::StreamReader::readi8
int readi8()
Reads a 8-byte (64 bit) signed integer from the input stream in binary big-endian format.
Qore::StreamReader::readi2
int readi2()
Reads a 2-byte (16 bit) signed integer from the input stream in binary big-endian format.
Qore::StreamReader::constructor
constructor(Qore::InputStream is, *string encoding)
Creates the StreamReader for reading data from the given InputStream.
Qore::StreamReader::readu1
int readu1()
Reads a 1-byte unsigned integer from the input stream.
Qore::StreamReader::getInputStream
InputStream getInputStream()
Returns the InputStream for the StreamReader.
Qore::StreamReader::readu2
int readu2()
Reads a 2-byte (16 bit) unsigned integer from the input stream in binary big-endian format.
Qore::StreamReader::readLine
*string readLine(*string eol, bool trim=True)
Reads a text line from the input stream.
Qore::StreamReader::getEncoding
string getEncoding()
Returns the character encoding for the StreamReader.
Qore::StreamReader::readBinary
*binary readBinary(int limit=-1)
Reads binary data from the input stream up to a given limit.
Qore::StreamReader::readi4LSB
int readi4LSB()
Reads a 4-byte (32 bit) signed integer from the input stream in binary little-endian format.
Qore::True
const True
logical True
Definition: qc_qore.dox.h:98
Qore::trim
nothing trim()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3