Add read_at/write_at to missing platforms

This commit is contained in:
gingerBill
2024-08-04 13:16:37 +01:00
parent c32f345c68
commit 7663a2036a
6 changed files with 99 additions and 19 deletions
+9 -1
View File
@@ -156,4 +156,12 @@ _error_string :: proc "contextless" (e: Platform_Error) -> string where intrinsi
return ti.names[idx]
}
return "<unknown platform error>"
}
}
@(private, require_results)
error_to_io_error :: proc(ferr: Error) -> io.Error {
if ferr == nil {
return .None
}
return ferr.(io.Error) or_else .Unknown
}