Home
last modified time | relevance | path

Searched refs:comp_buffer_ (Results 1 – 6 of 6) sorted by relevance

/external/bsdiff/
Dbz2_compressor.cc21 BZ2Compressor::BZ2Compressor() : comp_buffer_(1024 * 1024) { in BZ2Compressor()
51 bz_strm_.next_out = reinterpret_cast<char*>(comp_buffer_.buffer_data()); in Write()
52 bz_strm_.avail_out = comp_buffer_.buffer_size(); in Write()
59 uint64_t output_bytes = comp_buffer_.buffer_size() - bz_strm_.avail_out; in Write()
61 comp_buffer_.AddDataToChunks(output_bytes); in Write()
75 bz_strm_.next_out = reinterpret_cast<char*>(comp_buffer_.buffer_data()); in Finish()
76 bz_strm_.avail_out = comp_buffer_.buffer_size(); in Finish()
79 uint64_t output_bytes = comp_buffer_.buffer_size() - bz_strm_.avail_out; in Finish()
81 comp_buffer_.AddDataToChunks(output_bytes); in Finish()
98 return comp_buffer_.GetCompressedData(); in GetCompressedData()
Dbrotli_compressor.cc17 BrotliCompressor::BrotliCompressor(int quality) : comp_buffer_(kBufferSize) { in BrotliCompressor()
52 uint8_t* next_out = comp_buffer_.buffer_data(); in Write()
61 uint64_t output_bytes = comp_buffer_.buffer_size() - avail_out; in Write()
63 comp_buffer_.AddDataToChunks(output_bytes); in Write()
77 uint8_t* next_out = comp_buffer_.buffer_data(); in Finish()
85 uint64_t output_bytes = comp_buffer_.buffer_size() - avail_out; in Finish()
87 comp_buffer_.AddDataToChunks(output_bytes); in Finish()
94 return comp_buffer_.GetCompressedData(); in GetCompressedData()
Dcompressor_buffer.h25 comp_buffer_.resize(buffer_size); in CompressorBuffer()
28 size_t buffer_size() { return comp_buffer_.size(); } in buffer_size()
29 uint8_t* buffer_data() { return comp_buffer_.data(); } in buffer_data()
48 std::vector<uint8_t> comp_buffer_; variable
Dcompressor_buffer.cc26 if (data_size > comp_buffer_.size()) { in AddDataToChunks()
28 << " is larger than buffer size: " << comp_buffer_.size(); in AddDataToChunks()
31 comp_chunks_.emplace_back(comp_buffer_.data(), in AddDataToChunks()
32 comp_buffer_.data() + data_size); in AddDataToChunks()
Dbz2_compressor.h41 CompressorBuffer comp_buffer_; variable
Dbrotli_compressor.h38 CompressorBuffer comp_buffer_; variable