17 DataBuffer& stage_buf, std::optional<SerializeFunc>& f,
18 const DataRef& user_buf,
int direction,
int element_size
21 void serialize_elements(
int first,
int last)
const;
25 size_t max_element()
const;
29 bool has_file() {
return file !=
nullptr; }
32 bool has_stream() {
return !!strm; }
33 std::iostream* get_stream();
35 int get_dir()
const {
return dir; }
40 bool use_file_func =
false;
41 SerializeFileFunc file_func;
42 mutable std::unique_ptr<MFile> file;
44 bool use_strm_func =
false;
45 SerializeStreamFunc strm_func;
46 mutable std::optional<MStream> strm;