Class providing access to the contents of a file. More...
#include <eagine/file_contents.hpp>
Public Member Functions | |
| file_contents ()=default | |
| Default constructor. | |
| file_contents (string_view path) | |
| Constructor that opens and loads contents of file at the given path. | |
| auto | is_loaded () const noexcept -> bool |
| Checks if the contents were loaded. More... | |
| operator bool () const noexcept | |
| Checks if the contents were loaded. More... | |
| auto | block () const noexcept -> memory::const_block |
| Returns the block viewing the loaded file contents. More... | |
| operator memory::const_block () const noexcept | |
| Implicit conversion to the block viewing the loaded file contents. More... | |
Class providing access to the contents of a file.
|
inlinenoexcept |
Returns the block viewing the loaded file contents.
Referenced by operator memory::const_block().
|
inlinenoexcept |
|
inlineexplicitnoexcept |
Checks if the contents were loaded.
|
inlinenoexcept |