Functions for binary I/O.
More...
#include <iostream>
#include <cstring>
Go to the source code of this file.
Functions |
template<int N, typename T > |
void | IOUtils::WriteBinary (T value, std::ostream &ostr) |
| Writes a binary number to output stream.
|
template<int N, typename T > |
T | IOUtils::ReadBinary (std::istream &istr) |
| Reads a binary number from input stream.
|
void | IOUtils::WriteBinaryBool (float value, std::ostream &ostr) |
| Writes a binary 1-byte boolean.
|
bool | IOUtils::ReadBinaryBool (std::istream &istr) |
| Reads a binary 1-byte boolean.
|
void | IOUtils::WriteBinaryFloat (float value, std::ostream &ostr) |
| Writes a binary 32-bit float to output stream.
|
float | IOUtils::ReadBinaryFloat (std::istream &istr) |
| Reads a binary 32-bit float from input stream.
|
template<int N> |
void | IOUtils::WriteBinaryString (const std::string &value, std::ostream &ostr) |
| Writes a variable binary string to output stream.
|
template<int N> |
std::string | IOUtils::ReadBinaryString (std::istream &istr) |
| Reads a variable binary string from output stream.
|
Detailed Description
Functions for binary I/O.