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
Rough outline of methods:
mmap:
reserved = virtualallocex( ..., NULL, pagesize+viewsize, MEM_RESERVE ... ); truebase = virtualallocex( ..., reserved, pagesize, MEM_COMMIT, ... ); HANDLE *handles = truebase; handles[0] = file handle; handles[1] = CreateFileMapping(...); fileview = MapViewOfFileEx( handles[1], ..., viewsize, truebase + pagesize );
mremap:
original = base - pagesize; reserved = virtualallocex( ..., original, pagesize+viewsize, MEM_RESERVE ... ); if ( !reserved ) reserved = virtualallocex( ..., NULL, pagesize+viewsize, MEM_RESERVE ... ); truebase = virtualallocex( ..., reserved, pagesize, MEM_COMMIT, ... ); HANDLE *handles = truebase; if ( reserved != original ) { memcpy( original, reserved, sizeof(HANDLE) * 2 ); // decommit original or make available for malloc or something } fileview = MapViewOfFileEx( handles[1], ..., viewsize, truebase + pagesize );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rough outline of methods:
mmap:
mremap:
The text was updated successfully, but these errors were encountered: