Instance Methodnmggithub.kass 3.2.4MachCore
recipe(forKey:)
Gets a recipe from the voucher.
func recipe(forKey key: Mach.VoucherAttributeKey) throws -> mach_voucher_attr_recipe_t
Gets a recipe from the voucher.
func recipe(forKey key: Mach.VoucherAttributeKey) throws -> mach_voucher_attr_recipe_t
s8MachCore0A0V7VoucherC6recipe6forKeySpySo018mach_voucher_attr_D5_dataVGAC0c9AttributeF0V_tKF
What are these?21W2C
import MachCore
The core module for interacting with the Mach kernel.
class Voucher
A voucher.
struct Mach
The Mach kernel.
struct VoucherAttributeKey
A voucher attribute key.
var recipes: [Mach.VoucherAttributeRecipe] { get throws }
The recipes in the voucher.
convenience init(recipes: consuming [Mach.VoucherAttributeRecipe]) throws
Creates a new voucher with the given recipes.
override class var Nil: `Self` { get }
A voucher that represents no voucher.
func executeCommand(key: Mach.VoucherAttributeKey, command: any Mach.VoucherAttributeCommand, input: BitwiseCopyable? = nil) throws -> Data?
Executes a command on the voucher.