nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
saveload.hpp
Go to the documentation of this file.
1// runtime/include/nk/runtime/saveload.hpp
2#pragma once
3
4#include <nk/value/span.hpp>
5#include <nk/value/value.hpp>
6
7namespace nk {
8
11
12class Engine;
13class Environment;
14}
15
16namespace nk::runtime {
17
32
46void save(Engine &engine, Environment &env, Span<const Value> args);
47
65void load(Engine &engine, Environment &env, Span<const Value> args,
66 size_t nargout, Span<Value> outs);
67
68
70} // namespace nk::runtime
void load(Engine &engine, Environment &env, Span< const Value > args, size_t nargout, Span< Value > outs)
Load workspace variables from an ASCII file (load filename / S = load(filename)).
void save(Engine &engine, Environment &env, Span< const Value > args)
Save workspace variables to an ASCII file (save filename var1 var2 ...).