MCPcopy Create free account
hub / github.com/crownengine/crown / reserve_dynamic_data

Function reserve_dynamic_data

src/resource/material_resource.cpp:215–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 // Returns offset to start of data
214 template<typename T>
215 static u32 reserve_dynamic_data(Array<char> &dynamic, T data)
216 {
217 u32 offt = array::size(dynamic);
218 array::push(dynamic, (char *)&data, sizeof(data));
219 return offt;
220 }
221
222 static s32 parse_textures(Data &data, const char *json, CompileOptions &opts)
223 {

Callers 1

alloc_blobMethod · 0.85

Calls 2

pushFunction · 0.85
sizeFunction · 0.50

Tested by

no test coverage detected