Utlities for IO operations on binary streams.
More...
#include <BinIoUtils.h>
|
static void writeString (std::ostream &out, const std::string &str) |
Writes a string to a binary stream. More...
|
|
static void writeDouble (std::ostream &out, double val) |
Writes a double to a binary stream. More...
|
|
static void writeInt (std::ostream &out, int val) |
Writes an int to a binary stream. More...
|
|
static void writeSizeT (std::ostream &out, size_t val) |
Writes a size_t to a binary stream. More...
|
|
static std::string readString (std::istream &in) |
Returns a string read from a binary stream. More...
|
|
static double readDouble (std::istream &in) |
Returns a double read from a binary stream. More...
|
|
static int readInt (std::istream &in) |
Returns an int read from a binary stream. More...
|
|
static size_t readSizeT (std::istream &in) |
Returns a size_t read from a binary stream. More...
|
|
Utlities for IO operations on binary streams.
◆ readDouble()
double helayers::BinIoUtils::readDouble |
( |
std::istream & |
in | ) |
|
|
static |
Returns a double read from a binary stream.
- Parameters
-
◆ readInt()
int helayers::BinIoUtils::readInt |
( |
std::istream & |
in | ) |
|
|
static |
Returns an int read from a binary stream.
- Parameters
-
◆ readSizeT()
size_t helayers::BinIoUtils::readSizeT |
( |
std::istream & |
in | ) |
|
|
static |
Returns a size_t read from a binary stream.
- Parameters
-
◆ readString()
std::string helayers::BinIoUtils::readString |
( |
std::istream & |
in | ) |
|
|
static |
Returns a string read from a binary stream.
- Parameters
-
◆ writeDouble()
void helayers::BinIoUtils::writeDouble |
( |
std::ostream & |
out, |
|
|
double |
val |
|
) |
| |
|
static |
Writes a double to a binary stream.
- Parameters
-
out | Stream to write to |
val | The double to write |
◆ writeInt()
void helayers::BinIoUtils::writeInt |
( |
std::ostream & |
out, |
|
|
int |
val |
|
) |
| |
|
static |
Writes an int to a binary stream.
- Parameters
-
out | Stream to write to |
val | The int to write |
◆ writeSizeT()
void helayers::BinIoUtils::writeSizeT |
( |
std::ostream & |
out, |
|
|
size_t |
val |
|
) |
| |
|
static |
Writes a size_t to a binary stream.
- Parameters
-
out | Stream to write to |
val | The size_t to write |
◆ writeString()
void helayers::BinIoUtils::writeString |
( |
std::ostream & |
out, |
|
|
const std::string & |
str |
|
) |
| |
|
static |
Writes a string to a binary stream.
- Parameters
-
out | Stream to write to |
str | The string to write |
The documentation for this class was generated from the following files:
- /opt/IBM/FHE-distro/ML-HElib/src/helayers/hebase/utils/BinIoUtils.h
- /opt/IBM/FHE-distro/ML-HElib/src/helayers/hebase/utils/BinIoUtils.cpp