| ... | @@ -1428,8 +1428,13 @@ pub fn realpathZ(self: Dir, pathname: [*:0]const u8, out_buffer: []u8) RealPathE | ... | @@ -1428,8 +1428,13 @@ pub fn realpathZ(self: Dir, pathname: [*:0]const u8, out_buffer: []u8) RealPathE |
| 1428 | return result; | 1428 | return result; |
| 1429 | } | 1429 | } |
| 1430 | | 1430 | |
| 1431 | /// Windows-only. Same as `Dir.realpath` except `pathname` is WTF16 LE encoded. | 1431 | /// Windows-only. Same as `Dir.realpath` except |
| 1432 | /// The result is encoded as WTF16 LE. | 1432 | /// * `pathname` and the result are WTF-16 LE encoded |
| | 1433 | /// * `pathname` is relative or has the NT namespace prefix. See `windows.wToPrefixedFileW` for details. |
| | 1434 | /// |
| | 1435 | /// Additionally, `pathname` will never be accessed after `out_buffer` has been written to, so it |
| | 1436 | /// is safe to reuse a single buffer for both. |
| | 1437 | /// |
| 1433 | /// See also `Dir.realpath`, `realpathW`. | 1438 | /// See also `Dir.realpath`, `realpathW`. |
| 1434 | pub fn realpathW(self: Dir, pathname: []const u16, out_buffer: []u16) RealPathError![]u16 { | 1439 | pub fn realpathW(self: Dir, pathname: []const u16, out_buffer: []u16) RealPathError![]u16 { |
| 1435 | const w = windows; | 1440 | const w = windows; |