Hello,
Is it correct to use uchar for uint8 values as they are both unsigned, and 8 bit?
Instead of getting 2005 I'm getting 8224. Thats using &u. I don't think any byte ordering is required.
I'm also using:
ushort for uint16
UINT32 for uint32
UCHAR for dstring < works
I'm programming scsi commands to return data from a dvd disc. Sector 16 ISO PVD.
UDF 1.02 Spec:
C code:Code:struct timestamp { /* ISO 13346 1/7.3 */ Uint16 TypeAndTimezone; Uint16 Year; Uint8 Month; Uint8 Day; Uint8 Hour; Uint8 Minute; Uint8 Second; Uint8 Centiseconds; Uint8 HundredsofMicroseconds; Uint8 Microseconds; }
Returned:Code:typedef struct _timestamp { /* ECMA 167 1/7.3 */ USHORT TypeAndTimezone; USHORT Year; UCHAR Month; UCHAR Day; UCHAR Hour; UCHAR Minute; UCHAR Second; UCHAR Centiseconds; UCHAR HundredsofMicroseconds; UCHAR Microseconds; }
Type and timezone: 8224
Year: 8224
Month:32
Day: 32
Hour:32
Min:32
Sec:32 etc
Thanks for any help!



LinkBack URL
About LinkBacks


