cupertino-docs/docs/iousbhost/documentation_iousbhost_iousbgetendpointmaxpacketsize_5e98e960.json
Mihaela Mihaljevic 1eae0594fc data: refresh docs/ + add packages/ from .cupertino-dev
Bulk update of the public corpus from /Users/mmj/.cupertino-dev/, the
local source that built v1.0.0 / v1.0.1 release database bundles.

- docs/: 1,739 new pages, 403,381 modified (schema upgrade to the
  structured-page format used by v1.0+: overview, rawMarkdown,
  sections[].items[]). Total 404,568 page JSONs (2.4 GB).
- packages/: 1,587 packages (1.5 GB), previously empty in this repo.
  Includes per-package source archives and READMEs for the curated
  Swift package set. Some packages (notably swiftlang/swift-foundation-icu)
  ship 50-100 MB ICU lookup tables — under GitHub's 100 MB limit.

No deletions: existing files not in .cupertino-dev are preserved
(e.g. swift-org/ has 81 historical pages this update doesn't touch).
2026-05-09 12:58:32 +02:00

98 lines
5.9 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"abstract" : "Obtains the maximum packet size from an endpoint descriptor.",
"availability" : [
{
"beta" : false,
"deprecated" : false,
"introducedAt" : "14.0",
"name" : "Mac Catalyst",
"unavailable" : false
},
{
"beta" : false,
"deprecated" : false,
"introducedAt" : "10.15",
"name" : "macOS",
"unavailable" : false
}
],
"codeExamples" : [
],
"contentHash" : "be6891e2e866f14d982db95203f1191d2c05f77fa77f67e502ff29f95813c18d",
"crawledAt" : "2026-03-10T17:24:59Z",
"declaration" : {
"code" : "func IOUSBGetEndpointMaxPacketSize(_ usbDeviceSpeed: UInt32, _ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt16",
"language" : "swift"
},
"id" : "F9C66278-167F-4C24-A724-54995353E171",
"kind" : "function",
"language" : "swift",
"module" : "IOUSBHost",
"overview" : "## Return Value\n\nThe maximum packet size in bytes.\n\n## Discussion\n\nThis method parses an endpoint descriptor to determine its maximum packet size, which doesnt include mult or burst factors.",
"platforms" : [
"macOS"
],
"rawMarkdown" : "---\nsource: https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointMaxPacketSize(_:_:)\ncrawled: 2026-03-10T17:24:59Z\n---\n\n# IOUSBGetEndpointMaxPacketSize(_:_:)\n\n**Function**\n\nObtains the maximum packet size from an endpoint descriptor.\n\n## Declaration\n\n```swift\nfunc IOUSBGetEndpointMaxPacketSize(_ usbDeviceSpeed: UInt32, _ descriptor: UnsafePointer<IOUSBEndpointDescriptor>!) -> UInt16\n```\n\n## Parameters\n\n- **usbDeviceSpeed**: The operational speed of the device.\n- **descriptor**: The endpoint descriptor to parse.\n\n## Return Value\n\nThe maximum packet size in bytes.\n\n## Discussion\n\nThis method parses an endpoint descriptor to determine its maximum packet size, which doesnt include mult or burst factors.\n\n## Endpoint Descriptor Parsing\n\n- **IOUSBGetNextEndpointDescriptor(_:_:_:)**: Obtains the next endpoint descriptor for an interface descriptor.\n- **IOUSBGetEndpointDirection(_:)**: Obtains the direction of an endpoint from an endpoint descriptor.\n- **IOUSBGetEndpointAddress(_:)**: Obtains the direction and number of an endpoint from an endpoint descriptor.\n- **IOUSBGetEndpointNumber(_:)**: Obtains the number of an endpoint from an endpoint descriptor.\n- **IOUSBGetEndpointType(_:)**: Obtains the type of an endpoint from an endpoint descriptor.\n- **IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)**: Obtains the interval of an endpoint descriptor.\n- **IOUSBGetEndpointIntervalMicroframes(_:_:)**: Obtains the interval of an endpoint descriptor.\n- **IOUSBGetEndpointIntervalFrames(_:_:)**: Obtains the interval of an endpoint descriptor.\n- **IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)**: Obtains the number of streams that an endpoint supports.\n- **IOUSBGetEndpointMaxStreams(_:_:_:)**: Obtains the number of supported streams.\n\n",
"sections" : [
{
"content" : "",
"items" : [
{
"description" : "Obtains the next endpoint descriptor for an interface descriptor.",
"name" : "IOUSBGetNextEndpointDescriptor(_:_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetNextEndpointDescriptor(_:_:_:)"
},
{
"description" : "Obtains the direction of an endpoint from an endpoint descriptor.",
"name" : "IOUSBGetEndpointDirection(_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointDirection(_:)"
},
{
"description" : "Obtains the direction and number of an endpoint from an endpoint descriptor.",
"name" : "IOUSBGetEndpointAddress(_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointAddress(_:)"
},
{
"description" : "Obtains the number of an endpoint from an endpoint descriptor.",
"name" : "IOUSBGetEndpointNumber(_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointNumber(_:)"
},
{
"description" : "Obtains the type of an endpoint from an endpoint descriptor.",
"name" : "IOUSBGetEndpointType(_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointType(_:)"
},
{
"description" : "Obtains the interval of an endpoint descriptor.",
"name" : "IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointIntervalEncodedMicroframes(_:_:)"
},
{
"description" : "Obtains the interval of an endpoint descriptor.",
"name" : "IOUSBGetEndpointIntervalMicroframes(_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointIntervalMicroframes(_:_:)"
},
{
"description" : "Obtains the interval of an endpoint descriptor.",
"name" : "IOUSBGetEndpointIntervalFrames(_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointIntervalFrames(_:_:)"
},
{
"description" : "Obtains the number of streams that an endpoint supports.",
"name" : "IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointMaxStreamsEncoded(_:_:_:)"
},
{
"description" : "Obtains the number of supported streams.",
"name" : "IOUSBGetEndpointMaxStreams(_:_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointMaxStreams(_:_:_:)"
}
],
"title" : "Endpoint Descriptor Parsing"
}
],
"source" : "appleJSON",
"title" : "IOUSBGetEndpointMaxPacketSize(_:_:)",
"url" : "https:\/\/developer.apple.com\/documentation\/IOUSBHost\/IOUSBGetEndpointMaxPacketSize(_:_:)"
}