Zig 0.17.0-dev (Split by item) 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.
std › os › linux › sendto Public Function sendto Doc Source Public Function std.os.linux.sendto
pub fn sendto (fd : i32 , buf : [*]const u8 , len : usize , flags : u32 , addr : ?*const sockaddr , alen : socklen_t ) usize Params fd : i32 buf : [*]const u8 len : usize flags : u32 addr : ?*const sockaddr alen : socklen_t File os/linux.zig: 2610
2610
2611
2612
2613
2614
2615 pub fn sendto (fd : i32 , buf : [*]const u8 , len : usize , flags : u32 , addr : ?*const sockaddr , alen : socklen_t ) usize {
if (native_arch == .x86 ) {
return socketcall (SC .sendto , &[6 ]usize { @as (usize , @bitCast (@as (isize , fd ))), @intFromPtr (buf ), len , flags , @intFromPtr (addr ), @as (usize , @intCast (alen )) });
}
return syscall6 (.sendto , @as (usize , @bitCast (@as (isize , fd ))), @intFromPtr (buf ), len , flags , @intFromPtr (addr ), @as (usize , @intCast (alen )));
}