Generic IO¶
abstract_reader
class¶
template <typename T = void> abstract_reader
Base class for all typed readers
abstract_stream
class¶
template <typename T = void> abstract_stream
Base class for all typed readers and writer
abstract_writer
class¶
template <typename T = void> abstract_writer
Base class for all typed writers
binary_reader
typedef¶
binary_reader = abstract_reader<>
Binary reader
binary_writer
typedef¶
binary_writer = abstract_writer<>
Binary writer
byte_reader
typedef¶
byte_reader = abstract_reader<u8>
Byte reader
byte_writer
typedef¶
byte_writer = abstract_writer<u8>
Byte writer
f32_reader
typedef¶
f32_reader = abstract_reader<f32>
float reader
f32_writer
typedef¶
f32_writer = abstract_writer<f32>
float writer
file_reader
class¶
template <typename T = void> file_reader
Typed file reader
file_writer
class¶
template <typename T = void> file_writer
Typed file writer
fopen_portable
function¶
inline FILE *fopen_portable(const filepath_char *path,
const filepath_char *mode)
Opens file using portable path (char on posix, wchar_t on windows)
open_file_for_appending
function¶
template <typename T = void>
inline std::shared_ptr<file_writer<T>>
open_file_for_appending(const filepath &path)
Opens typed file for appending
open_file_for_reading
function¶
template <typename T = void>
inline std::shared_ptr<file_reader<T>>
open_file_for_reading(const filepath &path)
Opens typed file for reading
open_file_for_writing
function¶
template <typename T = void>
inline std::shared_ptr<file_writer<T>>
open_file_for_writing(const filepath &path)
Opens typed file for writing
seek_origin
enum¶
enum class seek_origin : int
Seek origin
current
enumerator¶
From the current position
begin
enumerator¶
From the beginning
end
enumerator¶
From the end
Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/