@@ -42,10 +42,13 @@ STATE_BLOCK_DIST_LENGTH, STATE_BLOCK_DIST_LENGTH_EXTRA, STATE_BLOCK_LEN_DIST_PAIR }; +@implementation OFLHADecompressingStream +@synthesize bytesConsumed = _bytesConsumed; + static OF_INLINE bool tryReadBits(OFLHADecompressingStream *stream, uint16_t *bits, uint8_t count) { uint16_t ret = stream->_savedBits; @@ -89,11 +92,10 @@ *bits = ret; return true; } -@implementation OFLHADecompressingStream - (instancetype)of_initWithStream: (OFStream *)stream distanceBits: (uint8_t)distanceBits dictionaryBits: (uint8_t)dictionaryBits { self = [super init];