diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2023-03-06 21:22:05 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2023-03-07 20:17:35 +0100 |
commit | 62858602c6aaa8c6c28bf82aa4e1244c1214b869 (patch) | |
tree | 991e7306448957caf5bec44362ee9a835820f499 /src/util/file.cpp | |
parent | 38ab9d38b52c873da1338f4d5eb58edb2ad5c2bc (diff) | |
download | ccache-62858602c6aaa8c6c28bf82aa4e1244c1214b869.tar.gz |
enhance: Add util::read_file_part<std::string> implementation
Diffstat (limited to 'src/util/file.cpp')
-rw-r--r-- | src/util/file.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/file.cpp b/src/util/file.cpp index 7b718969..d084f88c 100644 --- a/src/util/file.cpp +++ b/src/util/file.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2021-2022 Joel Rosdahl and other contributors +// Copyright (C) 2021-2023 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -255,6 +255,9 @@ read_file_part(const std::string& path, size_t pos, size_t count) template nonstd::expected<util::Bytes, std::string> read_file_part(const std::string& path, size_t pos, size_t count); +template nonstd::expected<std::string, std::string> +read_file_part(const std::string& path, size_t pos, size_t count); + template nonstd::expected<std::vector<uint8_t>, std::string> read_file_part(const std::string& path, size_t pos, size_t count); |