| ... | @@ -719,7 +719,8 @@ pub const Dir = struct { | ... | @@ -719,7 +719,8 @@ pub const Dir = struct { |
| 719 | return File{ .handle = fd }; | 719 | return File{ .handle = fd }; |
| 720 | } | 720 | } |
| 721 | | 721 | |
| 722 | /// Same as `openFile` but the path parameter is WTF-16 encoded. | 722 | /// Same as `openFile` but Windows-only and the path parameter is |
| | 723 | /// [WTF-16](https://simonsapin.github.io/wtf-8/#potentially-ill-formed-utf-16) encoded. |
| 723 | pub fn openFileW(self: Dir, sub_path_w: [*:0]const u16, flags: File.OpenFlags) File.OpenError!File { | 724 | pub fn openFileW(self: Dir, sub_path_w: [*:0]const u16, flags: File.OpenFlags) File.OpenError!File { |
| 724 | const w = os.windows; | 725 | const w = os.windows; |
| 725 | const access_mask = w.SYNCHRONIZE | | 726 | const access_mask = w.SYNCHRONIZE | |
| ... | @@ -756,7 +757,8 @@ pub const Dir = struct { | ... | @@ -756,7 +757,8 @@ pub const Dir = struct { |
| 756 | return File{ .handle = fd }; | 757 | return File{ .handle = fd }; |
| 757 | } | 758 | } |
| 758 | | 759 | |
| 759 | /// Same as `createFile` but the path parameter is WTF-16 encoded. | 760 | /// Same as `createFile` but Windows-only and the path parameter is |
| | 761 | /// [WTF-16](https://simonsapin.github.io/wtf-8/#potentially-ill-formed-utf-16) encoded. |
| 760 | pub fn createFileW(self: Dir, sub_path_w: [*:0]const u16, flags: File.CreateFlags) File.OpenError!File { | 762 | pub fn createFileW(self: Dir, sub_path_w: [*:0]const u16, flags: File.CreateFlags) File.OpenError!File { |
| 761 | const w = os.windows; | 763 | const w = os.windows; |
| 762 | const access_mask = w.SYNCHRONIZE | w.GENERIC_WRITE | | 764 | const access_mask = w.SYNCHRONIZE | w.GENERIC_WRITE | |