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

Method read

3rdparty/bx/src/settings.cpp:169–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int32_t Settings::read(ReaderSeekerI* _reader, Error* _err)
170{
171 int32_t size = int32_t(getRemain(_reader) );
172
173 void* data = bx::alloc(m_allocator, size);
174
175 int32_t total = bx::read(_reader, data, size, _err);
176 load(data, size);
177
178 bx::free(m_allocator, data);
179
180 return total;
181}
182
183int32_t Settings::write(WriterI* _writer, Error* _err) const
184{

Callers 1

readFunction · 0.45

Calls 4

allocFunction · 0.85
readFunction · 0.70
freeFunction · 0.70
loadFunction · 0.50

Tested by

no test coverage detected