Lines Matching refs:totalRead
380 size_t totalRead = _extraReadSizes[dec.state]; in Code() local
383 for (size_t i = 0; i < totalRead; i++) in Code()
397 UInt32 curSize = _bufsCurSizes[dec.state] - (UInt32)totalRead; in Code()
408 HRESULT res2 = inStreams[dec.state]->Read(_bufs[dec.state] + totalRead, curSize, &curSize); in Code()
413 totalRead += curSize; in Code()
417 while (totalRead < 4 && BCJ2_IS_32BIT_STREAM(dec.state)); in Code()
422 if (totalRead == 0) in Code()
429 unsigned extraSize = ((unsigned)totalRead & 3); in Code()
431 if (totalRead < 4) in Code()
436 totalRead -= extraSize; in Code()
439 dec.lims[dec.state] = _bufs[dec.state] + totalRead; in Code()
589 size_t totalRead = _extraReadSizes[dec.state]; in Read() local
592 for (size_t i = 0; i < totalRead; i++) in Read()
603 UInt32 curSize = _bufsCurSizes[dec.state] - (UInt32)totalRead; in Read()
604 HRESULT res2 = _inStreams[dec.state]->Read(_bufs[dec.state] + totalRead, curSize, &curSize); in Read()
609 totalRead += curSize; in Read()
613 while (totalRead < 4 && BCJ2_IS_32BIT_STREAM(dec.state)); in Read()
615 if (totalRead == 0) in Read()
624 unsigned extraSize = ((unsigned)totalRead & 3); in Read()
626 if (totalRead < 4) in Read()
632 totalRead -= extraSize; in Read()
635 dec.lims[dec.state] = _bufs[dec.state] + totalRead; in Read()