511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
|
if (_stream == nil)
@throw [OFNotOpenException exceptionWithObject: self];
if (_atEndOfStream)
return 0;
if (sizeof(length) >= sizeof(uint64_t) && length > UINT64_MAX)
@throw [OFOutOfRangeException exception];
if ((uint64_t)length > _toRead)
length = (size_t)_toRead;
ret = [_decompressedStream readIntoBuffer: buffer
length: length];
|
>
|
>
|
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
|
if (_stream == nil)
@throw [OFNotOpenException exceptionWithObject: self];
if (_atEndOfStream)
return 0;
#if SIZE_MAX >= UINT64_MAX
if (length > UINT64_MAX)
@throw [OFOutOfRangeException exception];
#endif
if ((uint64_t)length > _toRead)
length = (size_t)_toRead;
ret = [_decompressedStream readIntoBuffer: buffer
length: length];
|