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()
262 offset += dex_->string_ids.Init(offset, dex_ir_->strings.size()); in CreateImage()
263 offset += dex_->type_ids.Init(offset, dex_ir_->types.size()); in CreateImage()
264 offset += dex_->proto_ids.Init(offset, dex_ir_->protos.size()); in CreateImage()
265 offset += dex_->field_ids.Init(offset, dex_ir_->fields.size()); in CreateImage()
266 offset += dex_->method_ids.Init(offset, dex_ir_->methods.size()); in CreateImage()
267 offset += dex_->class_defs.Init(offset, dex_ir_->classes.size()); in CreateImage()
310 memcpy(header->magic, dex_ir_->magic.ptr(), dex_ir_->magic.size()); in CreateImage()
367 for (size_t i = 0; i < strings.size(); ++i) { in CreateStringDataSection()
376 dex::u4 size = section.Seal(4); in CreateStringDataSection() local
377 return size; in CreateStringDataSection()
387 map_item.size = section.ItemsCount(); in AddMapItem()
403 headerItem.size = 1; in CreateMapSection()
431 section.Push<dex::u4>(map_items.size()); in CreateMapSection()
501 dex::u4 size = dex_->code.Seal(4); in CreateCodeItemSection() local
502 return size; in CreateCodeItemSection()
515 dex::u4 size = dex_->debug_info.Seal(4); in CreateDebugInfoSection() local
516 return size; in CreateDebugInfoSection()
524 for (size_t i = 0; i < classes.size(); ++i) { in CreateClassDataSection()
530 dex::u4 size = dex_->class_data.Seal(4); in CreateClassDataSection() local
531 return size; in CreateClassDataSection()
539 for (size_t i = 0; i < classes.size(); ++i) { in CreateAnnDirectoriesSection()
553 for (size_t i = 0; i < classes.size(); ++i) { in CreateEncodedArrayItemSection()
565 for (size_t i = 0; i < types.size(); ++i) { in FillTypes()
576 for (size_t i = 0; i < protos.size(); ++i) { in FillProtos()
588 for (size_t i = 0; i < fields.size(); ++i) { in FillFields()
600 for (size_t i = 0; i < methods.size(); ++i) { in FillMethods()
612 for (size_t i = 0; i < classes.size(); ++i) { in FillClassDefs()
638 data.Push<dex::u4>(types.size()); in WriteTypeList()
664 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSet()
680 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSetRefList()
733 dex_annotations.fields_size = ir_annotations->field_annotations.size(); in WriteClassAnnotations()
734 dex_annotations.methods_size = ir_annotations->method_annotations.size(); in WriteClassAnnotations()
735 dex_annotations.parameters_size = ir_annotations->param_annotations.size(); in WriteClassAnnotations()
757 data.PushULeb128(ir_debug_info->param_names.size()); in WriteDebugInfo()
827 dex::u2* const end = ptr + instructions.size(); in WriteInstructions()
917 handlers_offset_map[ptr - original_list] = handlers_list.size(); in WriteTryBlocks()
942 dex::u4 tries_offset = data.size(); in WriteTryBlocks()
948 data.ptr<dex::TryBlock>(tries_offset), irCode->try_blocks.size())) { in WriteTryBlocks()
963 dex_code.tries_size = irCode->try_blocks.size(); in WriteCode()
965 dex_code.insns_size = irCode->instructions.size(); in WriteCode()
1023 data.PushULeb128(ir_class->static_fields.size()); in WriteClassData()
1024 data.PushULeb128(ir_class->instance_fields.size()); in WriteClassData()
1025 data.PushULeb128(ir_class->direct_methods.size()); in WriteClassData()
1026 data.PushULeb128(ir_class->virtual_methods.size()); in WriteClassData()