Lines Matching refs:size

68   size_t size = dst - buff;  in WriteIntValue()  local
69 assert(size > 0 && size <= sizeof(T)); in WriteIntValue()
70 WriteEncodedValueHeader(type, size - 1, data); in WriteIntValue()
71 data.Push(buff, size); in WriteIntValue()
79 size_t size = sizeof(T); in WriteFloatValue() local
82 while (size > 1 && *src == 0) { in WriteFloatValue()
83 --size; in WriteFloatValue()
88 for (size_t i = 0; i < size; ++i) { in WriteFloatValue()
92 assert(size > 0 && size <= sizeof(T)); in WriteFloatValue()
93 WriteEncodedValueHeader(type, size - 1, data); in WriteFloatValue()
94 data.Push(buff, size); in WriteFloatValue()
102 SLICER_EXTRA(auto offset = data.size()); in WriteEncodedValue()
191 auto size = data.size() - offset; in WriteEncodedValue()
192 SLICER_CHECK(size == ir_value->original.size()); in WriteEncodedValue()
193 SLICER_CHECK(memcmp(ptr, ir_value->original.ptr(), size) == 0); in WriteEncodedValue()
202 data.PushULeb128(ir_annotation->elements.size()); in WriteAnnotation()
212 data.PushULeb128(values.size()); in WriteEncodedArray()
221 if (section.size() == 0) { in CopySection()
228 dex::u4 size = section.size(); in CopySection() local
230 SLICER_CHECK(offset + size <= image_size); in CopySection()
232 ::memcpy(image + offset, section.data(), size); in CopySection()
255 offset += dex_->string_ids.Init(offset, dex_ir_->strings.size()); in CreateImage()
256 offset += dex_->type_ids.Init(offset, dex_ir_->types.size()); in CreateImage()
257 offset += dex_->proto_ids.Init(offset, dex_ir_->protos.size()); in CreateImage()
258 offset += dex_->field_ids.Init(offset, dex_ir_->fields.size()); in CreateImage()
259 offset += dex_->method_ids.Init(offset, dex_ir_->methods.size()); in CreateImage()
260 offset += dex_->class_defs.Init(offset, dex_ir_->classes.size()); in CreateImage()
303 memcpy(header->magic, dex_ir_->magic.ptr(), dex_ir_->magic.size()); in CreateImage()
360 for (size_t i = 0; i < strings.size(); ++i) { in CreateStringDataSection()
369 dex::u4 size = section.Seal(4); in CreateStringDataSection() local
370 return size; in CreateStringDataSection()
380 map_item.size = section.ItemsCount(); in AddMapItem()
396 headerItem.size = 1; in CreateMapSection()
424 section.Push<dex::u4>(map_items.size()); in CreateMapSection()
494 dex::u4 size = dex_->code.Seal(4); in CreateCodeItemSection() local
495 return size; in CreateCodeItemSection()
508 dex::u4 size = dex_->debug_info.Seal(4); in CreateDebugInfoSection() local
509 return size; in CreateDebugInfoSection()
517 for (size_t i = 0; i < classes.size(); ++i) { in CreateClassDataSection()
523 dex::u4 size = dex_->class_data.Seal(4); in CreateClassDataSection() local
524 return size; in CreateClassDataSection()
532 for (size_t i = 0; i < classes.size(); ++i) { in CreateAnnDirectoriesSection()
546 for (size_t i = 0; i < classes.size(); ++i) { in CreateEncodedArrayItemSection()
558 for (size_t i = 0; i < types.size(); ++i) { in FillTypes()
569 for (size_t i = 0; i < protos.size(); ++i) { in FillProtos()
581 for (size_t i = 0; i < fields.size(); ++i) { in FillFields()
593 for (size_t i = 0; i < methods.size(); ++i) { in FillMethods()
605 for (size_t i = 0; i < classes.size(); ++i) { in FillClassDefs()
631 data.Push<dex::u4>(types.size()); in WriteTypeList()
657 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSet()
673 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSetRefList()
726 dex_annotations.fields_size = ir_annotations->field_annotations.size(); in WriteClassAnnotations()
727 dex_annotations.methods_size = ir_annotations->method_annotations.size(); in WriteClassAnnotations()
728 dex_annotations.parameters_size = ir_annotations->param_annotations.size(); in WriteClassAnnotations()
750 data.PushULeb128(ir_debug_info->param_names.size()); in WriteDebugInfo()
820 dex::u2* const end = ptr + instructions.size(); in WriteInstructions()
911 handlers_offset_map[ptr - original_list] = handlers_list.size(); in WriteTryBlocks()
936 dex::u4 tries_offset = data.size(); in WriteTryBlocks()
942 data.ptr<dex::TryBlock>(tries_offset), irCode->try_blocks.size())) { in WriteTryBlocks()
957 dex_code.tries_size = irCode->try_blocks.size(); in WriteCode()
959 dex_code.insns_size = irCode->instructions.size(); in WriteCode()
1017 data.PushULeb128(ir_class->static_fields.size()); in WriteClassData()
1018 data.PushULeb128(ir_class->instance_fields.size()); in WriteClassData()
1019 data.PushULeb128(ir_class->direct_methods.size()); in WriteClassData()
1020 data.PushULeb128(ir_class->virtual_methods.size()); in WriteClassData()