diff options
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r-- | src/posix_extras.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h index 5571da6..f92bff7 100644 --- a/src/posix_extras.h +++ b/src/posix_extras.h @@ -95,6 +95,11 @@ class File { void UTimeNs(const char* path, const timespec& access, const timespec& modification) const; + // Writes the specified byte vector to the file at the given offset. Returns + // the number of bytes written, which will always be the number of bytes given + // as input. + size_t Write(off_t, const std::vector<std::uint8_t>&); + private: File() {} |