MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / alloc

Method alloc

Engine/OfxMemory.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool
60OfxMemory::alloc(size_t nBytes)
61{
62 bool ret = false;
63
64 freeMem(); // ignore return value
65 try {
66 ret = _memory->alloc(nBytes);
67 } catch (const std::bad_alloc &) {
68 return false;
69 }
70
71 return ret;
72}
73
74bool
75OfxMemory::freeMem()

Callers 3

newMemoryInstanceMethod · 0.45
newMemoryInstanceMethod · 0.45
newMemoryInstanceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected