MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / allocate_buffer

Method allocate_buffer

modules/engine/runtime/src/io/ram/ram_io.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void RAMIOBuffer::allocate_buffer(uint64_t n) SKR_NOEXCEPT
22{
23 if (n)
24 {
25 bytes = (uint8_t*)sakura_mallocN(n, kIOBufferMemoryName);
26 }
27 size = n;
28}
29
30void RAMIOBuffer::free_buffer() SKR_NOEXCEPT
31{

Callers 1

resolveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected