Differences From Artifact [91e7a25cd0]:
- File
src/OFInflateStream.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 18862) [annotate] [blame] [check-ins using] [more...]
To Artifact [4aad919281]:
- File src/OFInflateStream.m — part of check-in [3f1d13fa45] at 2016-05-29 14:48:10 on branch 0.8 — OFInflate64Stream: Fix window size (user: js, size: 18935) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
280 281 282 283 284 285 286 | #ifndef DEFLATE64 + (instancetype)streamWithStream: (OFStream*)stream { return [[[self alloc] initWithStream: stream] autorelease]; } | < < < < < | < < > > > > > > > > > > > > > > | 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | #ifndef DEFLATE64 + (instancetype)streamWithStream: (OFStream*)stream { return [[[self alloc] initWithStream: stream] autorelease]; } - initWithStream: (OFStream*)stream { self = [self init]; _stream = [stream retain]; return self; } - (void)dealloc { [_stream release]; [super dealloc]; } #endif - init { self = [super init]; _bitIndex = 8; /* 0-7 address the bit, 8 means fetch next byte */ #ifdef DEFLATE64 _slidingWindowMask = 0xFFFF; #else _slidingWindowMask = 0x7FFF; #endif return self; } - (size_t)lowlevelReadIntoBuffer: (void*)buffer_ length: (size_t)length { uint8_t *buffer = buffer_; uint_fast16_t bits, i, tmp; uint16_t value; |
︙ | ︙ |