Function getInfo [src]
Returns information about the random number generation implementation.
Prototype
pub fn getInfo(self: *const Rng, list: []align(8) Guid) GetInfoError![]align(8) Guid Parameters
self: *const Rnglist: []align(8) Guid Possible Errors
Source
pub fn getInfo(self: *const Rng, list: []align(8) Guid) GetInfoError![]align(8) Guid {
var len: usize = list.len;
switch (self._get_info(self, &len, list.ptr)) {
.success => return list[0..len],
.unsupported => return Error.Unsupported,
.device_error => return Error.DeviceError,
.buffer_too_small => return Error.BufferTooSmall,
else => |status| return uefi.unexpectedStatus(status),
}
}