Lines Matching refs:outBuf
72 static SRes Lzma2EncInt_EncodeSubblock(CLzma2EncInt *p, Byte *outBuf, in Lzma2EncInt_EncodeSubblock() argument
89 outBuf + lzHeaderSize, &packSize, LZMA2_PACK_SIZE_MAX, &unpackSize); in Lzma2EncInt_EncodeSubblock()
115 …outBuf[destPos++] = (Byte)(p->srcPos == 0 ? LZMA2_CONTROL_COPY_RESET_DIC : LZMA2_CONTROL_COPY_NO_R… in Lzma2EncInt_EncodeSubblock()
116 outBuf[destPos++] = (Byte)((u - 1) >> 8); in Lzma2EncInt_EncodeSubblock()
117 outBuf[destPos++] = (Byte)(u - 1); in Lzma2EncInt_EncodeSubblock()
118 memcpy(outBuf + destPos, LzmaEnc_GetCurBuf(p->enc) - unpackSize, u); in Lzma2EncInt_EncodeSubblock()
125 if (outStream->Write(outStream, outBuf, destPos) != destPos) in Lzma2EncInt_EncodeSubblock()
144 outBuf[destPos++] = (Byte)(LZMA2_CONTROL_LZMA | (mode << 5) | ((u >> 16) & 0x1F)); in Lzma2EncInt_EncodeSubblock()
145 outBuf[destPos++] = (Byte)(u >> 8); in Lzma2EncInt_EncodeSubblock()
146 outBuf[destPos++] = (Byte)u; in Lzma2EncInt_EncodeSubblock()
147 outBuf[destPos++] = (Byte)(pm >> 8); in Lzma2EncInt_EncodeSubblock()
148 outBuf[destPos++] = (Byte)pm; in Lzma2EncInt_EncodeSubblock()
151 outBuf[destPos++] = p->props; in Lzma2EncInt_EncodeSubblock()
159 if (outStream->Write(outStream, outBuf, destPos) != destPos) in Lzma2EncInt_EncodeSubblock()
248 Byte *outBuf; member
270 if (mainEncoder->outBuf == 0) in Lzma2Enc_EncodeMt1()
272 mainEncoder->outBuf = (Byte *)IAlloc_Alloc(mainEncoder->alloc, LZMA2_CHUNK_SIZE_COMPRESSED_MAX); in Lzma2Enc_EncodeMt1()
273 if (mainEncoder->outBuf == 0) in Lzma2Enc_EncodeMt1()
282 res = Lzma2EncInt_EncodeSubblock(p, mainEncoder->outBuf, &packSize, outStream); in Lzma2Enc_EncodeMt1()
374 p->outBuf = 0; in Lzma2Enc_Create()
407 IAlloc_Free(p->alloc, p->outBuf); in Lzma2Enc_Destroy()