Differences From Artifact [1c958d34d5]:
- File
src/OFGZIPStream.m
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 5826) [annotate] [blame] [check-ins using]
To Artifact [e4f1e2e6e9]:
- File
src/OFGZIPStream.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 5829) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
22 23 24 25 26 27 28 | #import "crc32.h" #import "OFChecksumFailedException.h" #import "OFInvalidFormatException.h" @implementation OFGZIPStream | | | | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #import "crc32.h" #import "OFChecksumFailedException.h" #import "OFInvalidFormatException.h" @implementation OFGZIPStream + (instancetype)streamWithStream: (OFStream *)stream { return [[[self alloc] initWithStream: stream] autorelease]; } - initWithStream: (OFStream *)stream { self = [super init]; @try { _stream = [stream retain]; _CRC32 = ~0; } @catch (id e) { |
︙ | ︙ | |||
51 52 53 54 55 56 57 | [_stream release]; [_inflateStream release]; [_modificationDate release]; [super dealloc]; } | | | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | [_stream release]; [_inflateStream release]; [_modificationDate release]; [super dealloc]; } - (size_t)lowlevelReadIntoBuffer: (void *)buffer length: (size_t)length { uint8_t byte; for (;;) { switch (_state) { case OF_GZIP_STREAM_ID1: |
︙ | ︙ |