SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
FS.h File Reference
#include <cstddef>
#include <span>
#include <string>
#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::string &filepath, std::size_t startOffset=0)
 
std::string sourcepp::fs::readFileText (const std::string &filepath, std::size_t startOffset=0)
 
bool sourcepp::fs::writeFileBuffer (const std::string &filepath, std::span< const std::byte > buffer)
 
bool sourcepp::fs::writeFileText (const std::string &filepath, const std::string &text)