Represents the byte stream reader with custom byte order.
More...
#include <WriteStream.hpp>
Represents the byte stream reader with custom byte order.
◆ WriteStream() [1/2]
Constructor.
- Parameters
-
sink | the output binary sink. |
byteOrder | the byte order of the stream. If the byte order is ByteOrder::Unknown the platform byte order will be used. |
- Exceptions
-
◆ WriteStream() [2/2]
Constructor.
- Parameters
-
sink | the output binary sink. |
byteOrder | the byte order of the stream. If the byte order is ByteOrder::Unknown the platform byte order will be used. |
- Exceptions
-
◆ getByteOrder()
ByteOrder CppMate::WriteStream::getByteOrder |
( |
| ) |
const |
|
inline |
Returns byte order of the stream.
- Returns
- byte order of the stream.
◆ operator<<() [1/3]
WriteStream& CppMate::WriteStream::operator<< |
( |
const char * |
value | ) |
|
|
inline |
operator <<
- Parameters
-
value | the string value to write. |
- Returns
- this
◆ operator<<() [2/3]
WriteStream& CppMate::WriteStream::operator<< |
( |
const std::string & |
value | ) |
|
|
inline |
operator <<
- Parameters
-
value | the string value to write. |
- Returns
- this
◆ operator<<() [3/3]
template<typename T >
WriteStream& CppMate::WriteStream::operator<< |
( |
T |
value | ) |
|
|
inline |
operator <<
- Parameters
-
- Returns
- this
◆ write()
template<typename T >
void CppMate::WriteStream::write |
( |
T |
value | ) |
|
|
inline |
Writes item to stream.
- Parameters
-
- Exceptions
-
◆ writeBytes()
void CppMate::WriteStream::writeBytes |
( |
const void * |
data, |
|
|
uint64_t |
size |
|
) |
| |
|
inline |
Writes raw bytes to the stream.
- Parameters
-
data | the data to write. |
size | the number of bytes to write. |
- Exceptions
-
std::invalid_argument,std::ostream::failure | |
◆ writeString() [1/2]
void CppMate::WriteStream::writeString |
( |
const char * |
str | ) |
|
|
inline |
Writes string into the stream.
- Parameters
-
- Exceptions
-
std::invalid_argument,std::ostream::failure | |
◆ writeString() [2/2]
void CppMate::WriteStream::writeString |
( |
const std::string & |
str | ) |
|
|
inline |
Writes string into the stream.
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: