Lines Matching refs:pos
158 size_t pos = 12; in ApplyImagePatch() local
161 if (pos + 4 > patch.data.size()) { in ApplyImagePatch()
165 int type = Read4(patch_header + pos); in ApplyImagePatch()
166 pos += 4; in ApplyImagePatch()
169 const char* normal_header = patch_header + pos; in ApplyImagePatch()
170 pos += 24; in ApplyImagePatch()
171 if (pos > patch.data.size()) { in ApplyImagePatch()
191 const char* raw_header = patch_header + pos; in ApplyImagePatch()
192 pos += 4; in ApplyImagePatch()
193 if (pos > patch.data.size()) { in ApplyImagePatch()
200 if (pos + data_len > patch.data.size()) { in ApplyImagePatch()
204 if (sink(reinterpret_cast<const unsigned char*>(patch_header + pos), data_len) != data_len) { in ApplyImagePatch()
208 pos += data_len; in ApplyImagePatch()
213 const char* deflate_header = patch_header + pos; in ApplyImagePatch()
214 pos += 60; in ApplyImagePatch()
215 if (pos > patch.data.size()) { in ApplyImagePatch()