| 129 | } |
| 130 | |
| 131 | Buffer CompileOptions::read_temporary(const char *path) |
| 132 | { |
| 133 | Buffer buf(default_allocator()); |
| 134 | File *file = _output_filesystem.open(path, FileOpenMode::READ); |
| 135 | if (file->is_open()) |
| 136 | file->read_all(buf); |
| 137 | _output_filesystem.close(*file); |
| 138 | return buf; |
| 139 | } |
| 140 | |
| 141 | void CompileOptions::write_temporary(const char *path, const char *data, u32 size) |
| 142 | { |