Function exportPackageLists [src]
Exports the contents of one or all package lists in the HII database into a buffer.
Prototype
pub fn exportPackageLists( self: *const HiiDatabase, handle: ?hii.Handle, buffer: []hii.PackageList, ) ExportPackageListError![]hii.PackageList Parameters
self: *const HiiDatabasehandle: ?hii.Handlebuffer: []hii.PackageList Possible Errors
Source
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),
}
}