Turi Create
4.0
|
When this archive is used to deserialize an object, and the object does not support serialization, failure will only occur at runtime. Otherwise equivalent to turi::iarchive. More...
#include <core/storage/serialization/iarchive.hpp>
Public Member Functions | |
char | read_char () |
Directly reads a single character from the input stream. | |
void | read (char *c, size_t len) |
template<typename T > | |
void | read_into (T &c) |
bool | fail () |
Returns true if the underlying stream is in a failure state. | |
iarchive_soft_fail (std::istream &instream) | |
iarchive_soft_fail (iarchive &iarc) | |
When this archive is used to deserialize an object, and the object does not support serialization, failure will only occur at runtime. Otherwise equivalent to turi::iarchive.
Definition at line 147 of file iarchive.hpp.
|
inline |
Constructs an iarchive_soft_fail object. Takes a reference to a generic std::istream object and associates the archive with it. Reads from the archive will read from the assiciated input stream.
Definition at line 192 of file iarchive.hpp.
|
inline |
Constructs an iarchive_soft_fail object from an iarchive. Both will share the same input stream
Definition at line 199 of file iarchive.hpp.
|
inline |
Directly reads a sequence of "len" bytes from the input stream into the location pointed to by "c"
Definition at line 162 of file iarchive.hpp.
|
inline |
Directly reads a sequence of "len" bytes from the input stream into the location pointed to by "c"
Definition at line 171 of file iarchive.hpp.