| 968 | } |
| 969 | |
| 970 | const void *FlatContiguousStreamerEntity::get_vector_ptr( |
| 971 | const ContiguousStorage &storage, size_t position) const { |
| 972 | if (!storage.vector_memory || position >= storage.vector_count) { |
| 973 | return nullptr; |
| 974 | } |
| 975 | return storage.vector_memory.get() + position * storage.vector_stride; |
| 976 | } |
| 977 | |
| 978 | const void *FlatStreamerEntity::get_vector_by_key(uint64_t key) const { |
| 979 | if (use_external_vector_) return nullptr; |