io: add std::string overload to slurp
This commit is contained in:
parent
a78ed2b879
commit
98732179a7
8
io.cpp
8
io.cpp
@ -70,6 +70,14 @@ util::slurp (const char *path)
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
std::vector<char>
|
||||
util::slurp (const std::string &path)
|
||||
{
|
||||
return slurp (path.c_str ());
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
std::vector<char>
|
||||
util::slurp (FILE *stream)
|
||||
|
Loading…
Reference in New Issue
Block a user