Overview
| Comment: | OFInflate64Stream: Fix window size |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | 0.8 |
| Files: | files | file ages | folders |
| SHA3-256: |
3f1d13fa45d2bc6da6d2d460c572a124 |
| User & Date: | js on 2016-05-29 14:48:10 |
| Other Links: | branch diff | manifest | tags |
Context
|
2020-05-23
| ||
| 16:48 | Close 0.8 branch (Closed-Leaf check-in: fd5645a04f user: js tags: 0.8) | |
|
2016-05-29
| ||
| 14:48 | OFInflate64Stream: Fix window size (check-in: 3f1d13fa45 user: js tags: 0.8) | |
|
2016-04-24
| ||
| 11:39 | Makefile: Revert back to packaging as .tar.gz (check-in: ed08007e97 user: js tags: 0.8) | |
Changes
Modified src/OFInflateStream.m from [91e7a25cd0] to [4aad919281].
| ︙ | ︙ | |||
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;
|
| ︙ | ︙ |