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 › tables › boot_services › BootServices › protocolsPerHandle Public Function protocolsPerHandle Doc Source Public Function std.os.uefi.tables.boot_services.BootServices.protocolsPerHandle
pub fn protocolsPerHandle (
self : *const BootServices ,
handle : Handle ,
) ProtocolsPerHandleError ![]*const Guid Params File os/uefi/tables/boot_services.zig: 1075
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092 pub fn protocolsPerHandle (
self : *const BootServices ,
handle : Handle ,
) ProtocolsPerHandleError ![]*const Guid {
var guids : [*]*const Guid = undefined ;
var len : usize = undefined ;
switch (self ._protocolsPerHandle (
handle ,
&guids ,
&len ,
)) {
.success => return guids [0 ..len ],
.invalid_parameter => return error .InvalidParameter ,
.out_of_resources => return error .OutOfResources ,
else => |status | return uefi .unexpectedStatus (status ),
}
}