Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

WindowsPathSpace

Public Struct
std.Io.Threaded.WindowsPathSpace
pub const WindowsPathSpace = struct

Fields

data: [windows.PATH_MAX_WIDE:0]u16
len: usize

Functions

pub fn span(wps: *const WindowsPathSpace) [: 0]const u16
pub fn string(wps: *const WindowsPathSpace) windows.UNICODE_STRING

File

Io/Threaded.zig:6889
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
pub const WindowsPathSpace = struct {
    data: [windows.PATH_MAX_WIDE:0]u16,
    len: usize,

    pub fn span(wps: *const WindowsPathSpace) [:0]const u16 {
        return wps.data[0..wps.len :0];
    }

    pub fn string(wps: *const WindowsPathSpace) windows.UNICODE_STRING {
        return .init(wps.span());
    }
}