Lines Matching defs:destPos
108 size_t destPos = 0;
113 if (packSizeLimit - destPos < u + 3)
115 outBuf[destPos++] = (Byte)(p->srcPos == 0 ? LZMA2_CONTROL_COPY_RESET_DIC : LZMA2_CONTROL_COPY_NO_RESET);
116 outBuf[destPos++] = (Byte)((u - 1) >> 8);
117 outBuf[destPos++] = (Byte)(u - 1);
118 memcpy(outBuf + destPos, LzmaEnc_GetCurBuf(p->enc) - unpackSize, u);
120 destPos += u;
124 *packSizeRes += destPos;
125 if (outStream->Write(outStream, outBuf, destPos) != destPos)
127 destPos = 0;
130 *packSizeRes = destPos;
137 size_t destPos = 0;
144 outBuf[destPos++] = (Byte)(LZMA2_CONTROL_LZMA | (mode << 5) | ((u >> 16) & 0x1F));
145 outBuf[destPos++] = (Byte)(u >> 8);
146 outBuf[destPos++] = (Byte)u;
147 outBuf[destPos++] = (Byte)(pm >> 8);
148 outBuf[destPos++] = (Byte)pm;
151 outBuf[destPos++] = p->props;
155 destPos += packSize;
159 if (outStream->Write(outStream, outBuf, destPos) != destPos)
161 *packSizeRes = destPos;