#include <istream>
#include <ostream>
#include <string>
#include "byte-swap.h"
#include "data-conv.h"
#include "file-ops.h"
#include "glob-match.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "oct-env.h"
#include "oct-locbuf.h"
#include "oct-time.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "interpreter.h"
#include "interpreter-private.h"
#include "load-save.h"
#include "ls-oct-binary.h"
#include "ls-utils.h"
#include "ov-cell.h"
#include "ov.h"
#include "pager.h"
#include "sysdep.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
Go to the source code of this file.
Functions | |
static bool | load_inline_fcn (std::istream &is, bool swap, octave::mach_info::float_format, octave_value &retval) |
std::string | read_binary_data (std::istream &is, bool swap, octave::mach_info::float_format fmt, const std::string &filename, bool &global, octave_value &tc, std::string &doc) |
bool | save_binary_data (std::ostream &os, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_global, bool save_as_floats) |
|
static |
Definition at line 61 of file ls-oct-binary.cc.
References __get_interpreter__(), octave_value_list::length(), OCTAVE_LOCAL_BUFFER, and swap_bytes< 4 >().
Referenced by read_binary_data().
std::string read_binary_data | ( | std::istream & | is, |
bool | swap, | ||
octave::mach_info::float_format | fmt, | ||
const std::string & | filename, | ||
bool & | global, | ||
octave_value & | tc, | ||
std::string & | doc | ||
) |
Definition at line 196 of file ls-oct-binary.cc.
References __get_type_info__(), error(), len, octave_value::load_binary(), load_inline_fcn(), type_info::lookup_type(), OCTAVE_LOCAL_BUFFER, and swap_bytes< 4 >().
Referenced by base_anonymous_fcn_handle::load_binary(), octave_cell::load_binary(), octave_class::load_binary(), octave_lazy_index::load_binary(), octave_struct::load_binary(), octave_scalar_struct::load_binary(), and load_save_system::load_vars().
bool save_binary_data | ( | std::ostream & | os, |
const octave_value & | tc, | ||
const std::string & | name, | ||
const std::string & | doc, | ||
bool | mark_global, | ||
bool | save_as_floats | ||
) |
Definition at line 340 of file ls-oct-binary.cc.
References len, octave_value::save_binary(), and octave_value::type_name().
Referenced by load_save_system::do_save(), octave_cell::save_binary(), octave_class::save_binary(), base_anonymous_fcn_handle::save_binary(), octave_lazy_index::save_binary(), octave_struct::save_binary(), and octave_scalar_struct::save_binary().