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 › ip6 › Ip6 › groups Public Function groups Doc Source Public Function std.os.uefi.protocol.ip6.Ip6.groups
pub fn groups (
self : *Ip6 ,
join_flag : JoinFlag ,
group_address : *const Address ,
) GroupsError !void Params File os/uefi/protocol/ip6.zig: 156
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177 pub fn groups (
self : *Ip6 ,
join_flag : JoinFlag ,
group_address : *const Address ,
) GroupsError !void {
switch (self ._groups (
self ,
// set to TRUE to join the multicast group session and FALSE to leave
join_flag == .join ,
group_address ,
)) {
.success => {},
.invalid_parameter => return error .InvalidParameter ,
.not_started => return error .NotStarted ,
.out_of_resources => return error .OutOfResources ,
.unsupported => return error .Unsupported ,
.already_started => return error .AlreadyStarted ,
.not_found => return error .NotFound ,
.device_error => return error .DeviceError ,
else => |status | return uefi .unexpectedStatus (status ),
}
}
Joins and leaves multicast groups.
To leave all groups, use
leaveAllGroupsinstead.