How cppfastio/fast_io works
fast_io is a header-only C++ I/O library intended to provide faster alternatives to iostream and stdio. The main user workflow is to select an I/O device, then print or scan values through the library’s generic operations, with hosted file and native-handle facilities available as sources and destinations. Supporting branches include character conversion, containers, filesystem and memory mapping, cryptography/TLS, and locale data. The README documents several of these capabilities, while source excerpts show selected TLS, container, and locale internals; links for unsampled subsystems are therefore limited to documented relationships.
Main entry points: client.h TLS Client · common.h Containers · io.h Print and Scan · operations I/O Operations
Components 25
I/O API
- Print and Scan
include/fast_io_legacy_impl/io.h - Device Concepts
include/fast_io_concept.h - I/O Operations
include/fast_io_core_impl/operations - Core Runtime
include/fast_io_core.h
Devices and Data
- Native I/O
include/fast_io_hosted - File I/O
include/fast_io_hosted/io_file.h - Filesystem
include/fast_io_hosted/filesystem - Memory Mapping
include/fast_io_hosted/mmap - Containers
include/fast_io_dsal/impl/common.h - Vector
include/fast_io_dsal/impl/vector.h - Deque
include/fast_io_dsal/impl/deque.h - Strings
include/fast_io_dsal/impl/string.h
Text and Locale
- Character Conversion
include/fast_io_core_impl/codecvt/impl.h - Binary Serialization
include/fast_io_freestanding_impl/serializations/lebe.h - Locale Formatting
include/fast_io_i18n/lc_print.h - Locale Blob Tools
src/binfmt/lcblob.h - Blob Compiler
src/binfmt/compile.h
Crypto and TLS
- Crypto Primitives
include/fast_io_crypto.h - TLS Client
include/fast_io_crypto/tls/client.h - TLS Server
include/fast_io_crypto/tls/server.h - TLS Async
include/fast_io_crypto/tls/async.h - Schannel Backend
include/fast_io_crypto/tls/schannel.h
Hosted Extensions
- Random Source
include/fast_io_hosted/white_hole/white_hole.h - Integration Drivers
include/fast_io_driver
Other components
- Application
Connections 24
- Application → Print and Scan: calls print or scan
- Print and Scan → I/O Operations: dispatches operations
include/fast_io_legacy_impl/io.h - I/O Operations → Device Concepts: uses device concepts
- I/O Operations → Core Runtime: uses core facilities
- Application → File I/O: opens files
- Application → Native I/O: selects native device
- Application → Memory Mapping: loads mapped data
- File I/O → Filesystem: works with paths
- Containers → Vector: provides vector
- Containers → Deque: provides deque
- Containers → Strings: provides strings
- Print and Scan → Character Conversion: supports Unicode I/O
- Application → Binary Serialization: serializes data
- Application → Locale Formatting: formats with locale
- Blob Compiler → Locale Blob Tools: builds locale blobs
src/binfmt/lcblob.h - Locale Blob Tools → Strings: uses string buffers
src/binfmt/lcblob.h - Application → Crypto Primitives: uses hash algorithms
- Application → TLS Client: initiates TLS client
- Application → TLS Server: runs TLS server
- TLS Client → TLS Async: includes async support
include/fast_io_crypto/tls/client_impl.h - TLS Client → Schannel Backend: includes backend
include/fast_io_crypto/tls/client_impl.h - TLS Server → TLS Client: shares TLS protocol
- Application → Random Source: requests randomness
- Application → Integration Drivers: uses integrations