Function openFileAbsoluteW [src]
Same as openFileAbsolute but the path parameter is WTF-16-encoded.
Prototype
pub fn openFileAbsoluteW(absolute_path_w: []const u16, flags: File.OpenFlags) File.OpenError!File Parameters
absolute_path_w: []const u16flags: File.OpenFlags Possible Errors
In WASI, this error may occur when the file descriptor does not hold the required rights to get its filestat information.
The Operating System returned an undocumented error code.
This error is in theory not possible, but it would be better to handle this error than to invoke undefined behavior.
When this error code is observed, it usually means the Zig Standard Library needs a small patch to add the error code to the error set for the respective function.
Source
pub fn openFileAbsoluteW(absolute_path_w: []const u16, flags: File.OpenFlags) File.OpenError!File {
assert(path.isAbsoluteWindowsWTF16(absolute_path_w));
return cwd().openFileW(absolute_path_w, flags);
}