MCPcopy Create free account
hub / github.com/axmolengine/axmol / takeBuffer

Method takeBuffer

core/base/Data.cpp:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121uint8_t* Data::takeBuffer(ssize_t* size)
122{
123 auto buffer = getBytes();
124 if (size)
125 *size = getSize();
126 return _impl.release_pointer();
127}
128
129}

Callers 6

initWithImageFileMethod · 0.80
LoadFileAsBytesMethod · 0.80
addPackageMethod · 0.80
updateFontsMethod · 0.80
_readFileMethod · 0.80

Calls 2

getSizeFunction · 0.85
release_pointerMethod · 0.45

Tested by

no test coverage detected