13 #ifndef SION_SION_ENUMS_H
14 #define SION_SION_ENUMS_H
16 #include "sion_config.h"
36 SION_LOWLEVEL_API_SIONFWD = 3,
38 #ifdef _SION_IME_NATIVE
40 SION_LOWLEVEL_API_IME_NATIVE = 4,
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_seek_mode
determines how offsets are interpreted for seek operations
sion_keyval_mode
specifies whether to use SIONlib's key-value mechanism for accessing file content and if so in what m...
@ SION_OPEN_WRITE
open the file for writing only
@ SION_OPEN_READ
open the file for reading only
@ SION_LOWLEVEL_API_POSIX
the POSIX I/O API (open(), read(), write(), close(), etc.)
@ SION_LOWLEVEL_API_C
the C standard library I/O API (fopen(), fread(), fwrite(), fclose(), etc.)
@ SION_ENDIANNESS_HOST
the user data has the endianness of the host system
@ SION_ENDIANNESS_BIG
the user data is big endian
@ SION_ENDIANNESS_LITTLE
the user data is little endian
@ SION_SEEK_CHUNK_END
interpret the offset relative to the end of the current chunk
@ SION_SEEK_END
interpret the offset relative to the end of the file
@ SION_SEEK_CURRENT
interpret the offset relative to the current position in the file
@ SION_SEEK_BEGINNING
interpret the offset relative to the beginning of the file
@ SION_SEEK_CHUNK_BEGINNING
interpret the offset relative to the beginning of the current chunk
@ SION_KEYVAL_MODE_UNKNOWN
when reading a file, learn appropriate mechanism from file header
@ SION_KEYVAL_MODE_META
not implemented
@ SION_KEYVAL_MODE_NONE
do not use key-value mechanism
@ SION_KEYVAL_MODE_HASH
not implemented
@ SION_KEYVAL_MODE_INLINE
key-value mechanism with inline storage of meta-data