Base Framework
|
Primitive output stream. More...
#include <base/io/PrimitiveOutputStream.h>
Inherits FilterOutputStream.
Public Member Functions | |
PrimitiveOutputStream (OutputStream &out) | |
void | writeBoolean (bool value) |
void | writeChar (char value) |
void | writeShortInteger (short value) |
void | writeUnsignedShortInteger (unsigned short value) |
void | writeInteger (int value) |
void | writeUnsignedInteger (unsigned int value) |
void | writeLongInteger (long long value) |
void | writeUnsignedLongInteger (unsigned long long value) |
void | writeFloat (float value) |
void | writeDouble (double value) |
void | writeLongDouble (long double value) |
![]() | |
FilterOutputStream (OutputStream &out) | |
OutputStream & | getOutputStream () noexcept |
void | close () |
void | flush () |
unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking=false) |
![]() | |
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 | |
![]() | |
OutputStream & | out |
Primitive output stream.
A FilterOutputStream that allows you to write primitive data types to an output stream in big-endian format. MT-Safe implementation if used with MT-safe input stream.
|
explicit |
Initializes the data output stream.
out | Output stream to be filtered. |
void PrimitiveOutputStream::writeBoolean | ( | bool | value | ) |
Writes a boolean (8 bits) to the stream.
void PrimitiveOutputStream::writeChar | ( | char | value | ) |
Writes a byte/character (8 bits) to the stream.
void PrimitiveOutputStream::writeDouble | ( | double | value | ) |
Writes a double (IEEE 64 bit format) to the stream.
void PrimitiveOutputStream::writeFloat | ( | float | value | ) |
Writes a float (IEEE 32 bit format) to the stream.
void PrimitiveOutputStream::writeInteger | ( | int | value | ) |
Writes an integer (32 bits) to the stream.
void PrimitiveOutputStream::writeLongDouble | ( | long double | value | ) |
Writes a long double (Intel 386 style 80 bit format) to the stream.
void PrimitiveOutputStream::writeLongInteger | ( | long long | value | ) |
Writes a long long integer (64 bits) to the stream.
void PrimitiveOutputStream::writeShortInteger | ( | short | value | ) |
Writes a short integer (16 bits) to the stream.
void PrimitiveOutputStream::writeUnsignedInteger | ( | unsigned int | value | ) |
Writes an unsigned integer (32 bits) to the stream.
void PrimitiveOutputStream::writeUnsignedLongInteger | ( | unsigned long long | value | ) |
Writes an unsigned long long (64 bits) integer to the stream.
void PrimitiveOutputStream::writeUnsignedShortInteger | ( | unsigned short | value | ) |
Writes an unsigned short integer (16 bits) to the stream.