Update references to old tellFile function
This commit is contained in:
parent
af1976b69c
commit
774536fd58
|
@ -377,11 +377,11 @@ pub const FileAccess = opaque {
|
||||||
///
|
///
|
||||||
pub fn size(file_access: *FileAccess, event_loop: *EventLoop) FileError!usize {
|
pub fn size(file_access: *FileAccess, event_loop: *EventLoop) FileError!usize {
|
||||||
// Save cursor to return to it later.
|
// 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);
|
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.
|
// Return to original cursor.
|
||||||
try event_loop.seekFile(file_access, .head, origin_cursor);
|
try event_loop.seekFile(file_access, .head, origin_cursor);
|
||||||
|
|
Loading…
Reference in New Issue