summaryrefslogtreecommitdiff
path: root/include/fud_file.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2025-01-03 00:08:58 -0600
committerDominick Allen <djallen@librehumanitas.org>2025-01-03 00:08:58 -0600
commitd93307d810b3f4ee8044f7308e360d9ea9c7cf22 (patch)
tree08cfe9ae27c2a9d5bd11881089b9a3333a3c11b8 /include/fud_file.hpp
parent1ac94c8aff47b549f30b370be2191bcc0157826c (diff)
More fixups to csv logic.
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);