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 › uefi › protocol › udp6 › Udp6 › groups Public Function groups Doc Source Public Function std.os.uefi.protocol.udp6.Udp6.groups
pub fn groups (
self : *Udp6 ,
join_flag : JoinFlag ,
multicast_address : ?*const Ip6 .Address ,
) GroupsError !void Params File os/uefi/protocol/udp6.zig: 102
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122 pub fn groups (
self : *Udp6 ,
join_flag : JoinFlag ,
multicast_address : ?*const Ip6 .Address ,
) GroupsError !void {
switch (self ._groups (
self ,
// set to TRUE to join a multicast group
join_flag == .join ,
multicast_address ,
)) {
.success => {},
.not_started => return error .NotStarted ,
.out_of_resources => return error .OutOfResources ,
.invalid_parameter => return error .InvalidParameter ,
.already_started => return error .AlreadyStarted ,
.not_found => return error .NotFound ,
.device_error => return error .DeviceError ,
else => |status | return uefi .unexpectedStatus (status ),
}
}