Base Framework
|
Primitive input stream. More...
#include <base/io/PrimitiveInputStream.h>
Inherits FilterInputStream.
Public Member Functions | |
PrimitiveInputStream (InputStream &in) | |
bool | readBoolean () |
char | readChar () |
short | readShortInteger () |
unsigned short | readUnsignedShortInteger () |
int | readInteger () |
unsigned int | readUnsignedInteger () |
long long | readLongInteger () |
unsigned long long | readUnsignedLongInteger () |
float | readFloat () |
double | readDouble () |
long double | readLongDouble () |
![]() | |
FilterInputStream (InputStream &in) | |
unsigned int | available () const |
void | close () |
unsigned int | read (uint8 *buffer, unsigned int size, bool nonblocking=false) |
unsigned int | skip (unsigned int count) |
void | wait () const |
bool | wait (unsigned int timeout) const |
![]() | |
virtual | ~Stream () noexcept(false) |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Additional Inherited Members | |
![]() | |
InputStream & | in |
Primitive input stream.
A FilterOutputStream that allows you to read primitive data types from an input stream in big-endian format. MT-Safe implementation if used with MT-safe input stream.
|
explicit |
Initializes the data input stream.
in | Input stream to be filtered. |
bool PrimitiveInputStream::readBoolean | ( | ) |
Reads a boolean (8 bits) from the stream.
char PrimitiveInputStream::readChar | ( | ) |
Reads a byte/character (8 bits) from the stream.
double PrimitiveInputStream::readDouble | ( | ) |
Reads a double (IEEE 64 bit format) from the stream.
float PrimitiveInputStream::readFloat | ( | ) |
Reads a float (IEEE 32 bit format) from the stream.
int PrimitiveInputStream::readInteger | ( | ) |
Reads an integer (32 bits) from the stream.
long double PrimitiveInputStream::readLongDouble | ( | ) |
Reads a long double (Intel 386 style 80 bit format) from the stream.
long long PrimitiveInputStream::readLongInteger | ( | ) |
Reads a long integer (64 bits) from the stream.
short PrimitiveInputStream::readShortInteger | ( | ) |
Reads a short integer (16 bits) from the stream.
unsigned int PrimitiveInputStream::readUnsignedInteger | ( | ) |
Reads an unsigned integer (32 bits) from the stream.
unsigned long long PrimitiveInputStream::readUnsignedLongInteger | ( | ) |
Reads an unsigned long integer (64 bits) from the stream.
unsigned short PrimitiveInputStream::readUnsignedShortInteger | ( | ) |
Reads an unsigned short integer (16 bits) from the stream.