Add AutoFile::seek and tell

It's useful to be able to seek to a specific position in a file. Allow
AutoFile to seek by using fseek.

It's also useful to be able to get the current position in a file.
Allow AutoFile to tell by using ftell.
This commit is contained in:
Ava Chow committed 2024-04-01 14:37:24 -04:00
1 parent 23ba39470c
commit ca18aea5c4
2 files changed
+25

No files matched your search

+3
View File
@@ -435,6 +435,9 @@ public:
/** Implementation detail, only used internally. */
std::size_t detail_fread(Span<std::byte> dst);
void seek(int64_t offset, int origin);
int64_t tell();
//
// Stream subset
//