On 10/1/03 1:59 AM, "Gerhard Wei_" <email@hidden> wrote:
> Sorry to say, but you're wrong. That's that we thought, too, but it's
> the other way around. Fortunately, the source is now available. Please
> check IOMemoryDescriptor.cpp, IOMemoryDescriptor::writeBytes().
Thank you for pointing that out. Yes, you are indeed correct and I
apologize for the misinformation.
The kIODirectionOut direction is indeed used to specify that the IOMD will
be used by a DMA engine as a source for data to send to a device. However,
when you create an IOMD with a kIODirectionOut it is made "read only", which
means that you cannot use the method writeBytes() on it. If you created the
IOMD from a buffer, then you can always just write directly to that buffer
and the IOMD will reflect those changes.
It is kind of confusing.
--
Fernando Urbina mailto:email@hidden
USB Technology Team work: 719.534.9387
Apple Computer, Inc. fax: 719.532.0981
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.