Lines Matching refs:op
600 BYTE *op = ostart; in ZSTD_compressSequences_internal() local
623 size_t const cSize = ZSTD_compressLiterals(zc, op, dstCapacity, literals, litSize); in ZSTD_compressSequences_internal()
626 op += cSize; in ZSTD_compressSequences_internal()
630 if ((oend - op) < 3 /*max nbSeq Size*/ + 1 /*seqHead */) in ZSTD_compressSequences_internal()
633 *op++ = (BYTE)nbSeq; in ZSTD_compressSequences_internal()
635 op[0] = (BYTE)((nbSeq >> 8) + 0x80), op[1] = (BYTE)nbSeq, op += 2; in ZSTD_compressSequences_internal()
637 op[0] = 0xFF, ZSTD_writeLE16(op + 1, (U16)(nbSeq - LONGNBSEQ)), op += 3; in ZSTD_compressSequences_internal()
639 return op - ostart; in ZSTD_compressSequences_internal()
642 seqHead = op++; in ZSTD_compressSequences_internal()
655 *op++ = llCodeTable[0]; in ZSTD_compressSequences_internal()
672 …size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protect… in ZSTD_compressSequences_internal()
675 op += NCountSize; in ZSTD_compressSequences_internal()
687 *op++ = ofCodeTable[0]; in ZSTD_compressSequences_internal()
704 …size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protect… in ZSTD_compressSequences_internal()
707 op += NCountSize; in ZSTD_compressSequences_internal()
719 *op++ = *mlCodeTable; in ZSTD_compressSequences_internal()
736 …size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protect… in ZSTD_compressSequences_internal()
739 op += NCountSize; in ZSTD_compressSequences_internal()
756 …CHECK_E(BIT_initCStream(&blockStream, op, oend - op), dstSize_tooSmall); /* not enough space remai… in ZSTD_compressSequences_internal()
826 op += streamSize; in ZSTD_compressSequences_internal()
829 return op - ostart; in ZSTD_compressSequences_internal()
2361 BYTE *op = ostart; in ZSTD_compress_generic() local
2403 …cSize = ZSTD_compressBlock_internal(cctx, op + ZSTD_blockHeaderSize, dstCapacity - ZSTD_blockHeade… in ZSTD_compress_generic()
2411 ZSTD_writeLE32(op, cBlockHeader24); /* no pb, 4th byte will be overwritten */ in ZSTD_compress_generic()
2412 memcpy(op + ZSTD_blockHeaderSize, ip, blockSize); in ZSTD_compress_generic()
2416 ZSTD_writeLE24(op, cBlockHeader24); in ZSTD_compress_generic()
2423 op += cSize; in ZSTD_compress_generic()
2426 if (lastFrameChunk && (op > ostart)) in ZSTD_compress_generic()
2428 return op - ostart; in ZSTD_compress_generic()
2433 BYTE *const op = (BYTE *)dst; in ZSTD_writeFrameHeader() local
2448 op[4] = frameHeaderDecriptionByte; in ZSTD_writeFrameHeader()
2451 op[pos++] = windowLogByte; in ZSTD_writeFrameHeader()
2456 op[pos] = (BYTE)(dictID); in ZSTD_writeFrameHeader()
2460 ZSTD_writeLE16(op + pos, (U16)dictID); in ZSTD_writeFrameHeader()
2464 ZSTD_writeLE32(op + pos, dictID); in ZSTD_writeFrameHeader()
2472 op[pos++] = (BYTE)(pledgedSrcSize); in ZSTD_writeFrameHeader()
2475 ZSTD_writeLE16(op + pos, (U16)(pledgedSrcSize - 256)); in ZSTD_writeFrameHeader()
2479 ZSTD_writeLE32(op + pos, (U32)(pledgedSrcSize)); in ZSTD_writeFrameHeader()
2483 ZSTD_writeLE64(op + pos, (U64)(pledgedSrcSize)); in ZSTD_writeFrameHeader()
2768 BYTE *op = ostart; in ZSTD_writeEpilogue() local
2780 op += fhSize; in ZSTD_writeEpilogue()
2789 ZSTD_writeLE32(op, cBlockHeader24); in ZSTD_writeEpilogue()
2790 op += ZSTD_blockHeaderSize; in ZSTD_writeEpilogue()
2798 ZSTD_writeLE32(op, checksum); in ZSTD_writeEpilogue()
2799 op += 4; in ZSTD_writeEpilogue()
2803 return op - ostart; in ZSTD_writeEpilogue()
3137 char *op = ostart; in ZSTD_compressStream_generic() local
3161 size_t oSize = oend - op; in ZSTD_compressStream_generic()
3163 cDst = op; /* compress directly into output buffer (avoid flush stage) */ in ZSTD_compressStream_generic()
3177 if (cDst == op) { in ZSTD_compressStream_generic()
3178 op += cSize; in ZSTD_compressStream_generic()
3189 …size_t const flushed = ZSTD_limitCopy(op, oend - op, zcs->outBuff + zcs->outBuffFlushedSize, toFlu… in ZSTD_compressStream_generic()
3190 op += flushed; in ZSTD_compressStream_generic()
3211 *dstCapacityPtr = op - ostart; in ZSTD_compressStream_generic()
3255 BYTE *op = ostart; in ZSTD_endStream() local
3267 op += sizeWritten; in ZSTD_endStream()
3281 …size_t const flushed = ZSTD_limitCopy(op, oend - op, zcs->outBuff + zcs->outBuffFlushedSize, toFlu… in ZSTD_endStream()
3282 op += flushed; in ZSTD_endStream()
3284 output->pos += op - ostart; in ZSTD_endStream()