331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
if (![[element name] isEqual: [self className]] ||
![[element namespace] isEqual: OF_SERIALIZATION_NS])
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
d.u = (uint64_t)[element hexadecimalValue];
seconds = of_bswap_double_if_le(d.d);
objc_autoreleasePoolPop(pool);
} @catch (id e) {
[self release];
@throw e;
}
|
|
|
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
if (![[element name] isEqual: [self className]] ||
![[element namespace] isEqual: OF_SERIALIZATION_NS])
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
d.u = (uint64_t)[element hexadecimalValue];
seconds = d.d;
objc_autoreleasePoolPop(pool);
} @catch (id e) {
[self release];
@throw e;
}
|
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
|
double d;
uint64_t u;
} d;
element = [OFXMLElement elementWithName: [self className]
namespace: OF_SERIALIZATION_NS];
d.d = of_bswap_double_if_le(seconds);
[element setStringValue:
[OFString stringWithFormat: @"%016" PRIx64, d.u]];
[element retain];
objc_autoreleasePoolPop(pool);
|
|
|
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
|
double d;
uint64_t u;
} d;
element = [OFXMLElement elementWithName: [self className]
namespace: OF_SERIALIZATION_NS];
d.d = seconds;
[element setStringValue:
[OFString stringWithFormat: @"%016" PRIx64, d.u]];
[element retain];
objc_autoreleasePoolPop(pool);
|