Turi Create  4.0
turi::oarchive_soft_fail Class Reference

When this archive is used to serialize an object, and the object does not support serialization, failure will only occur at runtime. Otherwise equivalent to turi::oarchive. More...

#include <core/storage/serialization/oarchive.hpp>

Public Member Functions

 oarchive_soft_fail (std::ostream &outstream)
 constructor. Takes a generic std::ostream object
 
void write (const char *c, std::streamsize s)
 

Detailed Description

When this archive is used to serialize an object, and the object does not support serialization, failure will only occur at runtime. Otherwise equivalent to turi::oarchive.

Definition at line 169 of file oarchive.hpp.

Member Function Documentation

◆ write()

void turi::oarchive_soft_fail::write ( const char *  c,
std::streamsize  s 
)
inline

Directly writes "s" bytes from the memory location pointed to by "c" into the stream.

Definition at line 187 of file oarchive.hpp.


The documentation for this class was generated from the following file: