Lines Matching refs:size
51 lzma2Props.lzmaProps.reduceSize = src.size(); // Size of data that will be compressed. in XzCompress()
59 static SRes ReadImpl(const ISeqInStream* p, void* buf, size_t* size) { in XzCompress()
61 *size = std::min(*size, ctx->src_.size() - ctx->src_pos_); in XzCompress()
62 memcpy(buf, ctx->src_.data() + ctx->src_pos_, *size); in XzCompress()
63 ctx->src_pos_ += *size; in XzCompress()
66 static size_t WriteImpl(const ISeqOutStream* p, const void* buf, size_t size) { in XzCompress()
69 ctx->dst_->insert(ctx->dst_->end(), buffer, buffer + size); in XzCompress()
70 return size; in XzCompress()
94 DCHECK_EQ(decompressed.size(), src.size()); in XzCompress()
95 DCHECK_EQ(memcmp(decompressed.data(), src.data(), src.size()), 0); in XzCompress()
103 alloc.Alloc = [](ISzAllocPtr, size_t size) { return malloc(size); }; in XzDecompress() argument
112 size_t src_remaining = src.size() - src_offset; in XzDecompress()
113 size_t dst_remaining = dst->size() - dst_offset; in XzDecompress()
126 CHECK_EQ(src_offset, src.size()); in XzDecompress()