10 #ifndef SION_SION_SERIAL_H
11 #define SION_SION_SERIAL_H
19 #include "sion_enums.h"
sion_open_mode
specifies for what type of access to open a file
sion_lowlevel_api
specifies a low-level API to use for file system access
sion_endianness
declares the endianness of user data written to a file
sion_keyval_mode
specifies whether to use SIONlib's key-value mechanism for accessing file content and if so in what m...
int sion_open_rank(const char *fname, sion_open_mode mode, int rank, const sion_rank_options *options)
Open a single logical file in a SIONlib container.
void sion_options_set_fsblksize(sion_options *options, int32_t fsblksize)
Set the file system block size to assume.
sion_options * sion_options_new(void)
Allocates and initializes an instance of sion_options
void sion_options_delete(sion_options *options)
Delete an instance of sion_options
struct sion_rank_options sion_rank_options
Holds non-essential arguments for sion_open_rank().
sion_rank_options * sion_rank_options_new(void)
Allocates and initializes an instance of sion_rank_options
void sion_options_set_chunksizes(sion_options *options, int n, const int64_t chunksizes[])
Set the chunk sizes of all logical files in the container.
void sion_options_set_endianness(sion_options *options, sion_endianness endianness)
Set the endianness for the contents of a container.
void sion_rank_options_set_lowlevel_api(sion_rank_options *options, sion_lowlevel_api lowlevel_api)
Set the low-level API to use for opening a container.
void sion_rank_options_delete(sion_rank_options *options)
Delete an instance of sion_rank_options
void sion_options_set_keyval_mode(sion_options *options, sion_keyval_mode keyval_mode)
Set the key-value mode to use for a container.
void sion_options_set_lowlevel_api(sion_options *options, sion_lowlevel_api lowlevel_api)
Set the low-level API to use for opening a container.
int sion_close(int sid)
Close a SIONlib file.
struct sion_options sion_options
Holds non-essential arguments for sion_open().
int sion_open(const char *fname, sion_open_mode mode, int n, const sion_options *options)
Open a SIONlib container in serial mode.