Euphoria
io.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <memory>
5 #include <optional>
6 
7 #include "base/memorychunk.h"
8 
9 
10 namespace eu::io
11 {
12  void
14  (
15  std::shared_ptr<MemoryChunk> chunk,
16  const std::string& full_path
17  );
18 
19  std::shared_ptr<MemoryChunk>
20  read_file_to_chunk(const std::string& full_path);
21 
22  std::optional<std::string>
23  read_file_to_string(const std::string& full_path);
24 }
Definition: enum.h:8
std::shared_ptr< MemoryChunk > read_file_to_chunk(const std::string &full_path)
Definition: io.cc:37
void write_chunk_to_file(std::shared_ptr< MemoryChunk > chunk, const std::string &full_path)
Definition: io.cc:14
std::optional< std::string > read_file_to_string(const std::string &full_path)
Definition: io.cc:68