Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
594 B
36
Indexable
Never
int relation_array_size = max_relation_index + 1;
int dependency_index_array_size = max_dependency_index + 1;

RelationData* local_relation_array = new RelationData[relation_array_size];
int32_t* local_dependency_index_array = new int32_t[dependency_index_array_size];

DMA::MemRead(pointers.relation_array, local_relation_array, sizeof(RelationData) * relation_array_size);
DMA::MemRead(pointers.dependency_index_array, local_dependency_index_array, sizeof(int32_t) * dependency_index_array_size);

// do stuff

delete[] local_relation_array;
delete[] local_dependency_index_array;