We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::string fileData; size_t fileSize = sysconf(_SC_PAGESIZE) * 100 + 10; fileData.reserve(fileSize); for (size_t i = 0; i < fileSize; i++) { fileData.push_back(0xff & Random::rand32()); }
File f = File::temporary(); writeStringToFileOrDie(fileData, f.fd()); std::cout << "fileSize" << fileSize << std::endl; MemoryMapping m(File(f.fd()), 4096, 8193);
The text was updated successfully, but these errors were encountered:
@yfeldblum
Sorry, something went wrong.
@yfeldblum window pageSize is 64K, but use functionsysconf(_SC_PAGESIZE) get page size is 4K, so meet error;
No branches or pull requests
std::string fileData;
size_t fileSize = sysconf(_SC_PAGESIZE) * 100 + 10;
fileData.reserve(fileSize);
for (size_t i = 0; i < fileSize; i++) {
fileData.push_back(0xff & Random::rand32());
}
File f = File::temporary();
writeStringToFileOrDie(fileData, f.fd());
std::cout << "fileSize" << fileSize << std::endl;
MemoryMapping m(File(f.fd()), 4096, 8193);
The text was updated successfully, but these errors were encountered: