Lines Matching refs:size_t
82 explicit Encoder(size_t output_block_size) : output_block_size_(output_block_size) {} in Encoder()
85 const size_t output_block_size_;
94 size_t available_out = output_buffer_.size(); in Decode()
97 size_t len = std::min(available_out, input_buffer_.front_size()); in Decode()
111 explicit NullEncoder(size_t output_block_size) : Encoder(output_block_size) {} in NullEncoder()
117 size_t available_out = output->size(); in Encode()
121 size_t len = std::min(available_out, input_buffer_.front_size()); in Encode()
143 size_t available_in = input_buffer_.front_size(); in Decode()
146 size_t available_out = output_buffer_.size(); in Decode()
152 size_t bytes_consumed = input_buffer_.front_size() - available_in; in Decode()
155 size_t bytes_emitted = output_buffer_.size() - available_out; in Decode()
179 explicit BrotliEncoder(size_t output_block_size) in BrotliEncoder()
192 size_t available_in = input_buffer_.front_size(); in Encode()
195 size_t available_out = output_bytes_left_; in Encode()
209 size_t bytes_consumed = input_buffer_.front_size() - available_in; in Encode()
231 size_t output_bytes_left_;
247 size_t available_in = input_buffer_.front_size(); in Decode()
250 size_t available_out = output_buffer_.size(); in Decode()
253 size_t rc = LZ4F_decompress(decoder_.get(), next_out, &available_out, next_in, in Decode()
286 explicit LZ4Encoder(size_t output_block_size) in LZ4Encoder()
295 size_t rc = LZ4F_compressBegin(encoder_.get(), header.data(), header.size(), nullptr); in LZ4Encoder()
310 size_t available_in = input_buffer_.front_size(); in Encode()
319 constexpr size_t max_input_size = 65536; in Encode()
320 const size_t encode_block_size = LZ4F_compressBound(max_input_size, nullptr); in Encode()
331 size_t available_out = encode_block.capacity(); in Encode()
334 size_t rc = LZ4F_compressUpdate(encoder_.get(), next_out, available_out, next_in, in Encode()
354 size_t rc = LZ4F_compressEnd(encoder_.get(), final_block.data(), final_block.size(), in Encode()
366 size_t len = std::min(output_block_size_, output_buffer_.size()); in Encode()
404 out.size = static_cast<size_t>(output_buffer_.size()); in Decode()
407 size_t rc = ZSTD_decompressStream(decoder_.get(), &out, &in); in Decode()
433 std::unique_ptr<ZSTD_DStream, size_t (*)(ZSTD_DStream*)> decoder_;
437 explicit ZstdEncoder(size_t output_block_size) in ZstdEncoder()
455 out.size = static_cast<size_t>(output->size()); in Encode()
459 size_t rc = ZSTD_compressStream2(encoder_.get(), &out, &in, end_directive); in Encode()
485 std::unique_ptr<ZSTD_CStream, size_t (*)(ZSTD_CStream*)> encoder_;