summaryrefslogtreecommitdiff
path: root/include/fud_file.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_file.hpp')
-rw-r--r--include/fud_file.hpp4
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);