#include <kernel_loader.h>
Definition at line 84 of file kernel_loader.h.
◆ LibraryIndex()
dart::kernel::LibraryIndex::LibraryIndex |
( |
const TypedDataView & |
kernel_data | ) |
|
|
explicit |
Definition at line 181 of file kernel_loader.cc.
182 : reader_(kernel_data) {
183 intptr_t data_size = reader_.
size();
184
186 procedure_index_offset_ = data_size - 4 - (procedure_count_ + 1) * 4;
187
188 class_count_ = reader_.
ReadUInt32At(procedure_index_offset_ - 4);
189 class_index_offset_ = procedure_index_offset_ - 4 - (class_count_ + 1) * 4;
190
191 source_references_offset_ = -1;
192 source_references_offset_ = reader_.
ReadUInt32At(class_index_offset_ - 4);
193}
uint32_t ReadUInt32At(intptr_t offset) const
◆ class_count()
intptr_t dart::kernel::LibraryIndex::class_count |
( |
| ) |
const |
|
inline |
◆ ClassOffset()
intptr_t dart::kernel::LibraryIndex::ClassOffset |
( |
intptr_t |
index | ) |
const |
|
inline |
◆ procedure_count()
intptr_t dart::kernel::LibraryIndex::procedure_count |
( |
| ) |
const |
|
inline |
◆ ProcedureOffset()
intptr_t dart::kernel::LibraryIndex::ProcedureOffset |
( |
intptr_t |
index | ) |
const |
|
inline |
◆ SizeOfClassAtOffset()
intptr_t dart::kernel::LibraryIndex::SizeOfClassAtOffset |
( |
intptr_t |
class_offset | ) |
const |
|
inline |
Definition at line 99 of file kernel_loader.h.
99 {
100 for (intptr_t
i = 0,
offset = class_index_offset_;
i < class_count_;
104 }
105 }
107 return -1;
108 }
◆ SourceReferencesOffset()
intptr_t dart::kernel::LibraryIndex::SourceReferencesOffset |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: