MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / load

Method load

TheForceEngine/TFE_FileSystem/memorystream.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool MemoryStream::load(size_t size, const void* const mem)
47{
48 if (!size || !mem) { return false; }
49
50 clear();
51 resizeBuffer(size);
52 if (!m_memory) { return false; }
53
54 memcpy(m_memory, mem, size);
55 return true;
56}
57
58bool MemoryStream::allocate(size_t size)
59{

Callers 13

grid3d_initFunction · 0.45
grid2d_initFunction · 0.45
loadSpriteShaderFunction · 0.45
loadShaderVariantFunction · 0.45
screenGPU_loadShadersFunction · 0.45
model_buildShaderVariantFunction · 0.45
renderDebug_enableFunction · 0.45
buildShadersMethod · 0.45
buildShadersMethod · 0.45
buildShadersMethod · 0.45
buildShadersMethod · 0.45
buildShadersMethod · 0.45

Calls 1

clearFunction · 0.50

Tested by

no test coverage detected