|
ESBMC
Efficient SMT-based Context-Bounded Model Checker
|
Read-only contents of a file, either bundled into the ESBMC binary or read from disk. More...
#include <filesystem.h>
Public Member Functions | |
| file_data ()=default | |
| file_data (const file_data &)=delete | |
| file_data & | operator= (const file_data &)=delete |
| file_data (file_data &&)=default | |
| file_data & | operator= (file_data &&)=default |
| std::string_view | view () const noexcept |
| size_t | size () const noexcept |
| bool | is_bundled () const noexcept |
Static Public Member Functions | |
| static file_data | bundled (const char *data, size_t size) |
| Borrows size bytes of static storage without copying them. | |
| static file_data | owned (std::string data) |
| Takes ownership of contents read from disk. | |
Read-only contents of a file, either bundled into the ESBMC binary or read from disk.
Bundled contents are borrowed from .rodata, so reading one costs no allocation; contents read from disk are owned. Either way view() is NUL-terminated at size(), which clang's Lexer requires of buffers handed to it directly – for bundled files that comes from the sentinel flail appends.
|
default |
|
delete |
|
default |
|
noexcept |
|
static |
Takes ownership of contents read from disk.
|
noexcept |
|
noexcept |