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

Method read_all

src/core/filesystem/file.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace crown
10{
11void File::read_all(Buffer &buf)
12{
13 CE_ASSERT(is_open(), "File is not open");
14
15 const u32 file_size = size();
16 array::resize(buf, file_size);
17 if (file_size != 0)
18 read(array::begin(buf), file_size);
19}
20
21namespace file
22{

Callers 8

read_temporaryMethod · 0.80
readMethod · 0.80
read_optionalMethod · 0.80
read_data_versionsFunction · 0.80
read_data_indexFunction · 0.80
read_data_mtimesFunction · 0.80
read_data_dependenciesFunction · 0.80
loadMethod · 0.80

Calls 5

is_openFunction · 0.85
sizeFunction · 0.50
resizeFunction · 0.50
readFunction · 0.50
beginFunction · 0.50

Tested by

no test coverage detected