Lines Matching refs:image_size

220 static void CopySection(const T& section, dex::u1* image, dex::u4 image_size) {  in CopySection()  argument
230 SLICER_CHECK(offset + size <= image_size); in CopySection()
296 const dex::u4 image_size = offset; in CreateImage() local
297 dex::u1* image = static_cast<dex::u1*>(allocator->Allocate(image_size)); in CreateImage()
302 memset(image, 0, image_size); in CreateImage()
305 SLICER_CHECK(image_size > sizeof(dex::Header)); in CreateImage()
312 header->file_size = image_size; in CreateImage()
332 header->data_size = image_size - data_offset; in CreateImage()
336 CopySection(dex_->string_ids, image, image_size); in CreateImage()
337 CopySection(dex_->type_ids, image, image_size); in CreateImage()
338 CopySection(dex_->proto_ids, image, image_size); in CreateImage()
339 CopySection(dex_->field_ids, image, image_size); in CreateImage()
340 CopySection(dex_->method_ids, image, image_size); in CreateImage()
341 CopySection(dex_->class_defs, image, image_size); in CreateImage()
342 CopySection(dex_->string_data, image, image_size); in CreateImage()
343 CopySection(dex_->type_lists, image, image_size); in CreateImage()
344 CopySection(dex_->debug_info, image, image_size); in CreateImage()
345 CopySection(dex_->encoded_arrays, image, image_size); in CreateImage()
346 CopySection(dex_->code, image, image_size); in CreateImage()
347 CopySection(dex_->class_data, image, image_size); in CreateImage()
348 CopySection(dex_->ann_directories, image, image_size); in CreateImage()
349 CopySection(dex_->ann_set_ref_lists, image, image_size); in CreateImage()
350 CopySection(dex_->ann_sets, image, image_size); in CreateImage()
351 CopySection(dex_->ann_items, image, image_size); in CreateImage()
352 CopySection(dex_->map_list, image, image_size); in CreateImage()
357 *new_image_size = image_size; in CreateImage()