Update references to old tellFile function

This commit is contained in:
kayomn 2022-10-03 22:45:22 +01:00
parent af1976b69c
commit 774536fd58
1 changed files with 2 additions and 2 deletions

View File

@ -377,11 +377,11 @@ pub const FileAccess = opaque {
///
pub fn size(file_access: *FileAccess, event_loop: *EventLoop) FileError!usize {
// Save cursor to return to it later.
const origin_cursor = try event_loop.tellFile(file_access);
const origin_cursor = try event_loop.queryFile(file_access);
try event_loop.seekFile(file_access, .tail, 0);
const ending_cursor = try event_loop.tellFile(file_access);
const ending_cursor = try event_loop.queryFile(file_access);
// Return to original cursor.
try event_loop.seekFile(file_access, .head, origin_cursor);