IOUSBGetPlatformCapabilityDescriptor

Function IOUSBGetPlatformCapabilityDescriptor 

Source
pub unsafe extern "C-unwind" fn IOUSBGetPlatformCapabilityDescriptor(
    bos_descriptor: *const IOUSBBOSDescriptor,
) -> *const IOUSBPlatformCapabilityDescriptor
Available on crate features AppleUSBDescriptorParsing and objc2-io-kit only.
Expand description

Find the first PlatformCapabilityDescriptor in a BOS descriptor

This method uses getNextCapabilityDescriptorWithType to fetch the first PlatformCapabilityDescriptor

Parameter bosDescriptor: BOS descriptor that contains the descriptors to iterate through

Returns: PlatformCapabilityDescriptor pointer, or NULL if no matching descriptor can be found

ยงSafety

  • bos_descriptor must be a valid pointer.
  • The returned struct field 5 Array TODO.