337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
uint32_t date;
_compressionMethod = [[OFString alloc]
initWithCString: header + 2
encoding: OFStringEncodingASCII
length: 5];
if (_compressedSize > UINT32_MAX ||
_uncompressedSize > UINT32_MAX)
@throw [OFOutOfRangeException exception];
memcpy(&_compressedSize, header + 7, 4);
_compressedSize =
OFFromLittleEndian32((uint32_t)_compressedSize);
memcpy(&_uncompressedSize, header + 11, 4);
_uncompressedSize =
OFFromLittleEndian32((uint32_t)_uncompressedSize);
|
<
<
<
<
|
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
uint32_t date;
_compressionMethod = [[OFString alloc]
initWithCString: header + 2
encoding: OFStringEncodingASCII
length: 5];
memcpy(&_compressedSize, header + 7, 4);
_compressedSize =
OFFromLittleEndian32((uint32_t)_compressedSize);
memcpy(&_uncompressedSize, header + 11, 4);
_uncompressedSize =
OFFromLittleEndian32((uint32_t)_uncompressedSize);
|