pub unsafe extern "C-unwind" fn IOUSBGetNextCapabilityDescriptor(
bos_descriptor: *const IOUSBBOSDescriptor,
current_descriptor: *const IOUSBDeviceCapabilityDescriptorHeader,
) -> *const IOUSBDeviceCapabilityDescriptorHeaderAvailable on crate features
AppleUSBDescriptorParsing and objc2-io-kit only.Expand description
Get the next device capability descriptor in a BOS descriptor
This method will advance currentDescriptor by its bLength, and validate that the new descriptor fits withing the bounds of bosDescriptor. Using NULL for currentDescriptor will return the first descriptor after the BOS descriptor.
Parameter bosDescriptor: BOS descriptor that contains the descriptors to iterate through
Parameter currentDescriptor: A descriptor pointer within the bounds of bosDescriptor, or NULL
Returns: DeviceCapabilityDescriptor pointer, or NULL if no descriptor can be returned
ยงSafety
bos_descriptormust be a valid pointer.current_descriptormust be a valid pointer.