MCPcopy Create free account
hub / github.com/LUX-Core/lux / setPagesRW

Function setPagesRW

src/crypto/RandomX/virtual_memory.cpp:121–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void setPagesRW(void* ptr, std::size_t bytes) {
122 pageProtect(ptr, bytes, PAGE_READWRITE);
123}
124
125void setPagesRX(void* ptr, std::size_t bytes) {
126 pageProtect(ptr, bytes, PAGE_EXECUTE_READ);

Callers 2

enableWritingMethod · 0.85
enableWritingMethod · 0.85

Calls 1

pageProtectFunction · 0.85

Tested by

no test coverage detected