MCPcopy Create free account
hub / github.com/acidanthera/BrcmPatchRAM / write

Method write

BrcmPatchRAM/USBHostDeviceShim.cpp:424–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424IOReturn USBPipeShim::write(IOMemoryDescriptor * buffer,
425 UInt32 noDataTimeout,
426 UInt32 completionTimeout,
427 IOByteCount reqCount,
428 USBCOMPLETION * completion)
429{
430 IOReturn result;
431 if (completion)
432 result = m_pPipe->io(buffer, (uint32_t)reqCount, completion, completionTimeout);
433 else
434 {
435 uint32_t bytesTransfered;
436 result = m_pPipe->io(buffer, (uint32_t)reqCount, bytesTransfered, completionTimeout);
437 }
438 return result;
439}
440
441const USBENDPOINTDESCRIPTOR* USBPipeShim::getEndpointDescriptor()
442{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected