MCPcopy Create free account
hub / github.com/bcndev/bytecoin / CryptoNightContext

Method CryptoNightContext

src/crypto/hash.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#if defined(_WIN32)
25
26CryptoNightContext::CryptoNightContext() {
27 data = VirtualAlloc(nullptr, MAP_SIZE, MEM_COMMIT, PAGE_READWRITE);
28 if (data == nullptr)
29 throw std::bad_alloc();
30}
31
32CryptoNightContext::~CryptoNightContext() {
33 if (!VirtualFree(data, 0, MEM_RELEASE))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected