什么是“245”?在 IOKit USB 库中?
我开始在 OS X 上使用 IOKit,并且对 IOKit USB 库中数据类型上标记的“245”感到困惑,例如 IOUSBInterfaceInterface245。 245是什么意思?我只是好奇最后附加的这个数字应该表明什么。它看起来像是某个东西的版本号。
是否有一个我可以使用的通用版本,而不必使用特定版本?
I'm getting started with IOKit on OS X, and I've been puzzled by the '245' tagged onto data types in the IOKit USB library, such as IOUSBInterfaceInterface245. What does the 245 mean? I'm just curious what this number tacked onto the end is supposed to indicate. It seems like a version number of something.
Is there a generic version that I can use, rather than having to use a specific version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信该数字是指该结构兼容的 IOUSBFamily 版本。查看 IOKit/usb/IOUSBLib.h 了解更多详细信息。
I believe that number refers to the IOUSBFamily version the struct is compatible with. Take a look at IOKit/usb/IOUSBLib.h for more details.
我相信它是 iousbfamily 2.4.5 ( os x Tiger) 附带的 USB 接口
IOUSBInterfaceInterface 是第一个版本,每个版本都可用,但较新的版本(如 245)添加了额外的功能,数字添加到末尾以保留旧版本向后兼容
i believe it is the usb interface interface that shipped with iousbfamily 2.4.5 ( os x tiger)
IOUSBInterfaceInterface is the 1st version and is available on every version but the newer ones like 245 add extra functionality, the number is added to the end to keep the old version for backward compatibility