Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beefytech/Beef
/ LoadFromMemory
Method
LoadFromMemory
BeefySysLib/img/ImageData.cpp:117–123 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
115
}
116
117
bool ImageData::LoadFromMemory(void* ptr, int size)
118
{
119
SetSrcData((uint8*)ptr, size);
120
bool result = ReadData();
121
mSrcData = NULL;
122
return result;
123
}
124
125
bool ImageData::LoadFromFile(const StringImpl& path)
126
{
Callers
1
LoadTexture
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected