Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/applypatch/
Dimgpatch.cpp76 static constexpr size_t buffer_size = 32768; in ApplyBSDiffPatchAndStreamOutput() local
82 std::vector<uint8_t> buffer(buffer_size); in ApplyBSDiffPatchAndStreamOutput()
83 strm->avail_out = buffer_size; in ApplyBSDiffPatchAndStreamOutput()
96 size_t have = buffer_size - strm->avail_out; in ApplyBSDiffPatchAndStreamOutput()
Dapplypatch.cpp129 size_t buffer_size = 0; // # bytes read so far in LoadPartitionContents() local
138 size_t next = current_size - buffer_size; in LoadPartitionContents()
146 buffer_size += read; in LoadPartitionContents()
179 buffer.resize(buffer_size); in LoadPartitionContents()
/bootable/recovery/updater/
Dblockimg.cpp326 size_t buffer_size = std::min<size_t>(32768, nti->writer->AvailableSpace()); in receive_brotli_new_data() local
327 if (buffer_size == 0) { in receive_brotli_new_data()
331 uint8_t buffer[buffer_size]; in receive_brotli_new_data()
333 size_t available_out = buffer_size; in receive_brotli_new_data()
346 LOG(DEBUG) << "bytes to write: " << buffer_size - available_out << ", bytes consumed " in receive_brotli_new_data()
349 size_t write_now = buffer_size - available_out; in receive_brotli_new_data()