Searched refs:file_size (Results 1 – 9 of 9) sorted by relevance
/arkcompiler/runtime_core/libpandafile/ |
D | file.h | 64 uint32_t file_size; member 181 Span file(GetBase(), header->file_size); in GetSpanFromId() 189 Span file(GetBase(), header->file_size); in GetClasses() 197 Span file(GetBase(), header->file_size); in GetLiteralArrays() 205 Span file(GetBase(), header->file_size); in GetIndexHeaders() 212 if (UNLIKELY(!id.IsValid() || id.GetOffset() >= GetHeader()->file_size)) { in GetIndexHeader() 229 Span file(GetBase(), header->file_size); in GetClassIndex() 232 … THROW_IF(index_header->class_idx_off > header->file_size || class_idx_size > header->file_size || in GetClassIndex() 233 … index_header->class_idx_off > header->file_size - class_idx_size, "index_header is invalid"); in GetClassIndex() 248 Span file(GetBase(), header->file_size); in GetMethodIndex() [all …]
|
D | file.cpp | 535 bool CheckHeaderElementOffset(size_t offset, size_t number, size_t file_size) in CheckHeaderElementOffset() argument 538 if (offset > file_size || number_size > file_size || offset > file_size - number_size) { in CheckHeaderElementOffset() 572 if (header->file_size < sizeof(File::Header) || header->file_size > ptr.GetSize()) { in CheckHeader() 573 LOG(ERROR, PANDAFILE) << "Invalid panda file size " << header->file_size; in CheckHeader() 577 …!CheckHeaderElementOffset<uint8_t>(header->foreign_off, header->foreign_size, header->file_size)) { in CheckHeader() 583 if (!CheckHeaderElementOffset(header->class_idx_off, header->num_classes, header->file_size)) { in CheckHeader() 589 if (!CheckHeaderElementOffset(header->lnp_idx_off, header->num_lnps, header->file_size)) { in CheckHeader() 595 …kHeaderElementOffset(header->literalarray_idx_off, header->num_literalarrays, header->file_size)) { in CheckHeader() 602 header->file_size)) { in CheckHeader()
|
D | file_item_container.cpp | 594 uint32_t file_size = ComputeLayout(); in WriteHeader() local 595 writer->ReserveBufferCapacity(file_size); in WriteHeader() 615 if (!writer->Write(file_size)) { in WriteHeader()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | file_item_container_test.cpp | 114 header.file_size = sizeof(File::Header); 136 header.file_size = sizeof(File::Header); 186 header.file_size = sizeof(File::Header); 211 header.file_size = sizeof(File::Header); 301 EXPECT_EQ(panda_file->GetHeader()->file_size, mem_writer.GetData().size()); 776 …auto checksum = adler32(1, file->GetBase() + DATA_OFFSET, file->GetHeader()->file_size - DATA_OFFS… 814 …auto checksum = adler32(1, file->GetBase() + DATA_OFFSET, file->GetHeader()->file_size - DATA_OFFS…
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile.h | 242 return pf_->GetHeader()->file_size; in GetFileSize()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
D | js_pandafile_test.cpp | 251 Span fileData(file->GetBase(), header->file_size); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/test/scripts/performance_test/ |
D | performance_build.py | 150 PerformanceBuild.append_into_dic(name_str1, info.file_size, self.all_size_dic)
|
/arkcompiler/runtime_core/disassembler/ |
D | disassembler.cpp | 372 if (class_id > file_->GetHeader()->file_size) { in GetRecords() 375 … << ") out of bounds (0x" << file_->GetHeader()->file_size << ")!"; in GetRecords()
|
/arkcompiler/runtime_core/docs/ |
D | file_format.md | 211 | `file_size` | `uint32_t` | Size of the file in bytes. |
|