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. Private Function

address6ToPosix

Private Function
std.Io.Threaded.address6ToPosix
fn address6ToPosix(a: *const net.Ip6Address) posix.sockaddr.in6

Params

  • a: *const net.Ip6Address

File

Io/Threaded.zig:14342
14342
14343
14344
14345
14346
14347
14348
14349
fn address6ToPosix(a: *const net.Ip6Address) posix.sockaddr.in6 {
    return .{
        .port = std.mem.nativeToBig(u16, a.port),
        .flowinfo = a.flow,
        .addr = a.bytes,
        .scope_id = a.interface.index,
    };
}