Lines Matching refs:destPos
165 size_t destPos = 0; in Lzma2EncInt_EncodeSubblock() local
171 if (packSizeLimit - destPos < u + 3) in Lzma2EncInt_EncodeSubblock()
173 …outBuf[destPos++] = (Byte)(p->srcPos == 0 ? LZMA2_CONTROL_COPY_RESET_DIC : LZMA2_CONTROL_COPY_NO_R… in Lzma2EncInt_EncodeSubblock()
174 outBuf[destPos++] = (Byte)((u - 1) >> 8); in Lzma2EncInt_EncodeSubblock()
175 outBuf[destPos++] = (Byte)(u - 1); in Lzma2EncInt_EncodeSubblock()
176 memcpy(outBuf + destPos, LzmaEnc_GetCurBuf(p->enc) - unpackSize, u); in Lzma2EncInt_EncodeSubblock()
178 destPos += u; in Lzma2EncInt_EncodeSubblock()
183 *packSizeRes += destPos; in Lzma2EncInt_EncodeSubblock()
184 if (ISeqOutStream_Write(outStream, outBuf, destPos) != destPos) in Lzma2EncInt_EncodeSubblock()
186 destPos = 0; in Lzma2EncInt_EncodeSubblock()
189 *packSizeRes = destPos; in Lzma2EncInt_EncodeSubblock()
198 size_t destPos = 0; in Lzma2EncInt_EncodeSubblock() local
205 outBuf[destPos++] = (Byte)(LZMA2_CONTROL_LZMA | (mode << 5) | ((u >> 16) & 0x1F)); in Lzma2EncInt_EncodeSubblock()
206 outBuf[destPos++] = (Byte)(u >> 8); in Lzma2EncInt_EncodeSubblock()
207 outBuf[destPos++] = (Byte)u; in Lzma2EncInt_EncodeSubblock()
208 outBuf[destPos++] = (Byte)(pm >> 8); in Lzma2EncInt_EncodeSubblock()
209 outBuf[destPos++] = (Byte)pm; in Lzma2EncInt_EncodeSubblock()
212 outBuf[destPos++] = p->propsByte; in Lzma2EncInt_EncodeSubblock()
216 destPos += packSize; in Lzma2EncInt_EncodeSubblock()
220 if (ISeqOutStream_Write(outStream, outBuf, destPos) != destPos) in Lzma2EncInt_EncodeSubblock()
223 *packSizeRes = destPos; in Lzma2EncInt_EncodeSubblock()
635 size_t destPos = *outBufSize; in Lzma2Enc_EncodeMt1() local
636 if (destPos >= outLim) in Lzma2Enc_EncodeMt1()
638 outBuf[destPos] = 0; in Lzma2Enc_EncodeMt1()
639 *outBufSize = destPos + 1; in Lzma2Enc_EncodeMt1()