Searched refs:index_header (Results 1 – 1 of 1) sorted by relevance
225 Span<const EntityId> GetClassIndex(const IndexHeader *index_header) const in GetClassIndex() argument227 THROW_IF(index_header == nullptr, "index_header is null"); in GetClassIndex()230 ASSERT(index_header != nullptr); in GetClassIndex()231 auto class_idx_size = index_header->class_idx_size * EntityId::GetSize(); 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()234 …auto sp = file.SubSpan(index_header->class_idx_off, index_header->class_idx_size * EntityId::GetSi… in GetClassIndex()235 return Span(reinterpret_cast<const EntityId *>(sp.data()), index_header->class_idx_size); in GetClassIndex()240 auto *index_header = GetIndexHeader(id); in GetClassIndex() local241 return GetClassIndex(index_header); in GetClassIndex()[all …]