Lines Matching refs:size_t
53 static bool ApplyBSDiffPatchAndStreamOutput(const uint8_t* src_data, size_t src_len, in ApplyBSDiffPatchAndStreamOutput()
54 const Value& patch, size_t patch_offset, in ApplyBSDiffPatchAndStreamOutput()
56 size_t expected_target_length = static_cast<size_t>(Read8(deflate_header + 32)); in ApplyBSDiffPatchAndStreamOutput()
57 CHECK_GT(expected_target_length, static_cast<size_t>(0)); in ApplyBSDiffPatchAndStreamOutput()
78 size_t actual_target_length = 0; in ApplyBSDiffPatchAndStreamOutput()
79 size_t total_written = 0; in ApplyBSDiffPatchAndStreamOutput()
80 static constexpr size_t buffer_size = 32768; in ApplyBSDiffPatchAndStreamOutput()
82 &ret, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput()
101 size_t have = buffer_size - strm.avail_out; in ApplyBSDiffPatchAndStreamOutput()
135 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const unsigned char* patch_data, in ApplyImagePatch()
136 size_t patch_size, SinkFn sink) { in ApplyImagePatch()
142 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink, in ApplyImagePatch()
158 size_t pos = 12; in ApplyImagePatch()
176 size_t src_start = static_cast<size_t>(Read8(normal_header)); in ApplyImagePatch()
177 size_t src_len = static_cast<size_t>(Read8(normal_header + 8)); in ApplyImagePatch()
178 size_t patch_offset = static_cast<size_t>(Read8(normal_header + 16)); in ApplyImagePatch()
198 size_t data_len = static_cast<size_t>(Read4(raw_header)); in ApplyImagePatch()
220 size_t src_start = static_cast<size_t>(Read8(deflate_header)); in ApplyImagePatch()
221 size_t src_len = static_cast<size_t>(Read8(deflate_header + 8)); in ApplyImagePatch()
222 size_t patch_offset = static_cast<size_t>(Read8(deflate_header + 16)); in ApplyImagePatch()
223 size_t expanded_len = static_cast<size_t>(Read8(deflate_header + 24)); in ApplyImagePatch()
236 size_t bonus_size = (i == 1 && bonus_data != nullptr) ? bonus_data->data.size() : 0; in ApplyImagePatch()