Re: IOBluetoothGetVersion: Bug?
Re: IOBluetoothGetVersion: Bug?
- Subject: Re: IOBluetoothGetVersion: Bug?
- From: Alexander Traud <email@hidden>
- Date: Wed, 12 Oct 2005 00:57:51 +0200
> First: why don't you just do it this way:
> BluetoothHCIVersionInfo hciVersionStructure
Yes, sorry forget to mention, I can't do that because in my "IDE" I have no
header access. I have to count the bytes myself - long story as I said. ;-)
> about the extra bytes, they are probably padding put by the compiler
> (the size of hciVersionStructure is indeed 10 bytes).
Yes, that is the answer. The UInt8 are padded so the following UInt16 are at
their two byte boundary. Good I asked. Sorry and thanks. I will test my
structs with sizeof in a normal IDE in the future.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden