From d93307d810b3f4ee8044f7308e360d9ea9c7cf22 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Fri, 3 Jan 2025 00:08:58 -0600 Subject: More fixups to csv logic. --- include/fud_file.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/fud_file.hpp') 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); -- cgit v1.2.3