Example #1
0
 /** Directly writes "s" bytes from the memory location
  * pointed to by "c" into the stream.
  */
 inline void write(const char* c, std::streamsize s) {
   oarc->write(c, s);
 }
 inline void save(oarchive& oarc) const {
   oarc.write(reinterpret_cast<const char*>(this), sizeof(flex_date_time));
 }
Example #3
0
void unity_sgraph::save_reference(oarchive& oarc) const {
  log_func_entry();
  oarc.write(GRAPH_MAGIC_HEADER, strlen(GRAPH_MAGIC_HEADER));
  oarc << get_graph().get_num_partitions();
  get_graph().save_reference(oarc);
}