Lines Matching refs:size
53 lzma2Props.lzmaProps.reduceSize = src.size(); // Size of data that will be compressed. in XzCompress()
61 static SRes ReadImpl(const ISeqInStream* p, void* buf, size_t* size) { in XzCompress()
63 *size = std::min(*size, ctx->src_.size() - ctx->src_pos_); in XzCompress()
64 memcpy(buf, ctx->src_.data() + ctx->src_pos_, *size); in XzCompress()
65 ctx->src_pos_ += *size; in XzCompress()
68 static size_t WriteImpl(const ISeqOutStream* p, const void* buf, size_t size) { in XzCompress()
71 ctx->dst_->insert(ctx->dst_->end(), buffer, buffer + size); in XzCompress()
72 return size; in XzCompress()
96 DCHECK_EQ(decompressed.size(), src.size()); in XzCompress()
97 DCHECK_EQ(memcmp(decompressed.data(), src.data(), src.size()), 0); in XzCompress()
107 alloc.Alloc = [](ISzAllocPtr, size_t size) { return malloc(size); }; in XzDecompress() argument
116 size_t src_remaining = src.size() - src_offset; in XzDecompress()
117 size_t dst_remaining = dst->size() - dst_offset; in XzDecompress()
130 CHECK_EQ(src_offset, src.size()); in XzDecompress()