SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
FS.h File Reference
#include <cstddef>
#include <filesystem>
#include <span>
#include <string_view>
#include <vector>
Include dependency graph for FS.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sourcepp
namespace  sourcepp::fs

Functions

std::vector< std::byte > sourcepp::fs::readFileBuffer (const std::filesystem::path &filepath, std::size_t startOffset=0)
std::string sourcepp::fs::readFileText (const std::filesystem::path &filepath, std::size_t startOffset=0)
bool sourcepp::fs::writeFileBuffer (const std::filesystem::path &filepath, std::span< const std::byte > buffer)
bool sourcepp::fs::writeFileText (const std::filesystem::path &filepath, std::string_view text)