Differences From Artifact [944c9a1051]:
- File
src/OFTarArchive.m
— part of check-in
[29ee511f56]
at
2017-08-07 00:20:35
on branch trunk
— OFTarArchive: More efficient skipping
If the stream is seekable, seek instead of reading to skip. (user: js, size: 9156) [annotate] [blame] [check-ins using]
To Artifact [6d92ac1a5f]:
- File src/OFTarArchive.m — part of check-in [2071d164bb] at 2017-08-11 18:14:14 on branch trunk — Fix warnings with 32 bit Clang (user: js, size: 9194) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
292 293 294 295 296 297 298 | if (_stream == nil) @throw [OFNotOpenException exceptionWithObject: self]; if (_atEndOfStream) return 0; | | | 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | 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 = [_stream readIntoBuffer: buffer length: length]; |
︙ | ︙ |