How anthony-y/tiny-vfs works
Tiny VFS is a small C++ library that maps virtual paths to physical directories, resolves files, and reads text. Its principal workflow is for a host application to mount directories, resolve a virtual file path, and optionally read that file. The implementation keeps mounts in an in-memory map and uses file streams for existence checks and reads. Relationships are based on the README and the sampled implementation; the sample application was not inspected.
Main entry points: tinyvfs.cpp VFS runtime · tinyvfs.hpp VFS API
Components 5
Other components
- Host application
- VFS API
tinyvfs.hpp - VFS runtime
tinyvfs.cpp - Mount map
tinyvfs.cpp - Physical files
Connections 4
- Host application → VFS API: mounts, resolves, reads
README.md - VFS runtime → VFS API: includes declarations
tinyvfs.cpp - VFS runtime → Mount map: adds, clears, reads
tinyvfs.cpp - VFS runtime → Physical files: checks, reads
tinyvfs.cpp