Base Framework
Public Member Functions | List of all members
PrimitiveInputStream Class Reference

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 ()
 
- Public Member Functions inherited from FilterInputStream
 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
 
- Public Member Functions inherited from Stream
virtual ~Stream () noexcept(false)
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Additional Inherited Members

- Protected Attributes inherited from FilterInputStream
InputStreamin
 

Detailed Description

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.

Version
1.0

Constructor & Destructor Documentation

◆ PrimitiveInputStream()

PrimitiveInputStream::PrimitiveInputStream ( InputStream in)
explicit

Initializes the data input stream.

Parameters
inInput stream to be filtered.

Member Function Documentation

◆ readBoolean()

bool PrimitiveInputStream::readBoolean ( )

Reads a boolean (8 bits) from the stream.

◆ readChar()

char PrimitiveInputStream::readChar ( )

Reads a byte/character (8 bits) from the stream.

◆ readDouble()

double PrimitiveInputStream::readDouble ( )

Reads a double (IEEE 64 bit format) from the stream.

◆ readFloat()

float PrimitiveInputStream::readFloat ( )

Reads a float (IEEE 32 bit format) from the stream.

◆ readInteger()

int PrimitiveInputStream::readInteger ( )

Reads an integer (32 bits) from the stream.

◆ readLongDouble()

long double PrimitiveInputStream::readLongDouble ( )

Reads a long double (Intel 386 style 80 bit format) from the stream.

◆ readLongInteger()

long long PrimitiveInputStream::readLongInteger ( )

Reads a long integer (64 bits) from the stream.

◆ readShortInteger()

short PrimitiveInputStream::readShortInteger ( )

Reads a short integer (16 bits) from the stream.

◆ readUnsignedInteger()

unsigned int PrimitiveInputStream::readUnsignedInteger ( )

Reads an unsigned integer (32 bits) from the stream.

◆ readUnsignedLongInteger()

unsigned long long PrimitiveInputStream::readUnsignedLongInteger ( )

Reads an unsigned long integer (64 bits) from the stream.

◆ readUnsignedShortInteger()

unsigned short PrimitiveInputStream::readUnsignedShortInteger ( )

Reads an unsigned short integer (16 bits) from the stream.