Contents

IOUSBGetContainerIDDescriptor(_:)

Obtains the first container ID capability descriptor in a BOS descriptor.

Declaration

func IOUSBGetContainerIDDescriptor(_ bosDescriptor: UnsafePointer<IOUSBBOSDescriptor>!) -> UnsafePointer<IOUSBDeviceCapabilityContainerID>!

Parameters

  • bosDescriptor:

    A BOS descriptor that contains the descriptors to iterate through.

Return Value

A container ID capability descriptor pointer, or nil if no matching descriptor returns.

Discussion

This method uses IOUSBGetNextCapabilityDescriptorWithType(_:_:_:) to find the first container ID capability descriptor.

See Also

BOS Descriptor Parsing