File Io

View as Markdown

Source header: cuvs/util/file_io.hpp

Types

util::fd_streambuf

Streambuf that reads from a POSIX file descriptor

1class fd_streambuf : public std::streambuf { ... };

util::fd_istream

Istream that reads from a POSIX file descriptor

1class fd_istream : public std::istream { ... };

util::file_descriptor

RAII wrapper for POSIX file descriptors

Manages file descriptor lifecycle with automatic cleanup. Non-copyable, move-only.

1class file_descriptor { ... };

util::buffered_ofstream

Buffered output stream wrapper

Wraps an std::ostream with a buffer to improve write performance by reducing the number of system calls. Automatically flushes on destruction. Non-copyable, non-movable.

1class buffered_ofstream { ... };