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 › hii_database › HiiDatabase › exportPackageLists Public Function exportPackageLists Doc Source Public Function std.os.uefi.protocol.hii_database.HiiDatabase.exportPackageLists
pub fn exportPackageLists (
self : *const HiiDatabase ,
handle : ?hii .Handle ,
buffer : []hii .PackageList ,
) ExportPackageListError ![]hii .PackageList Params File os/uefi/protocol/hii_database.zig: 87
87
88
89
90
91
92
93
94
95
96
97
98
99
100 pub fn exportPackageLists (
self : *const HiiDatabase ,
handle : ?hii .Handle ,
buffer : []hii .PackageList ,
) ExportPackageListError ![]hii .PackageList {
var len = buffer .len ;
switch (self ._export_package_lists (self , handle , &len , buffer .ptr )) {
.success => return buffer [0 ..len ],
.buffer_too_small => return error .BufferTooSmall ,
.invalid_parameter => return error .InvalidParameter ,
.not_found => return error .NotFound ,
else => |status | return uefi .unexpectedStatus (status ),
}
}
Exports the contents of one or all package lists in the HII database into a buffer.