diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fud_file.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fud_file.hpp b/include/fud_file.hpp index 66719e4..bf1fe37 100644 --- a/include/fud_file.hpp +++ b/include/fud_file.hpp @@ -158,6 +158,10 @@ class RegularFile { FudStatus seek(size_t position); + [[nodiscard]] constexpr size_t position() const { + return m_position; + } + /** \brief Write from source to file as sink. */ DrainResult write(const std::byte* source, size_t length, size_t maxExtraAttempts = 0); |