Skip to content
Snippets Groups Projects
Commit 1732c9b2 authored by jsclose's avatar jsclose
Browse files

Merge branch 'origin/ConstraintSolver' of...

Merge branch 'origin/ConstraintSolver' of https://gitlab.eecs.umich.edu/vcday/eecs398-search into origin/ConstraintSolver
parents 9df25828 8b7f1c3b
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,11 @@ public:
capacity = floor(fileSize / nodeSize);
}
map = (char*) mmap(nullptr, FileSize1(file), PROT_READ | PROT_WRITE, MAP_SHARED, file, 0);
string sizeString = to_string(size);
sizeString.resize(10);
for(size_t i = 0; i < 10; i++) {
map[i] = sizeString[i];
}
}
/**
......@@ -213,5 +218,4 @@ private:
return st.st_size;
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment