MCPcopy Create free account
hub / github.com/crawl/crawl / read

Method read

crawl-ref/source/dlua.cc:91–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void dlua_chunk::read(reader& inf)
92{
93 clear();
94 chunk_t type = static_cast<chunk_t>(unmarshallByte(inf));
95 switch (type)
96 {
97 case CT_EMPTY:
98 return;
99 case CT_SOURCE:
100 unmarshallString4(inf, chunk);
101 break;
102 case CT_COMPILED:
103 unmarshallString4(inf, compiled);
104 break;
105 }
106 unmarshallString4(inf, file);
107 first = unmarshallInt(inf);
108}
109
110void dlua_chunk::clear()
111{

Callers 15

_edit_saveFunction · 0.45
_load_map_indexFunction · 0.45
_readlnFunction · 0.45
read_ghost_headerFunction · 0.45
_read_character_infoFunction · 0.45
captureReadByteBufferMethod · 0.45
simpleCopyMethod · 0.45
openFileMethod · 0.45
openAssetMethod · 0.45
load_templateFunction · 0.45
mainFunction · 0.45

Calls 4

unmarshallByteFunction · 0.85
unmarshallString4Function · 0.85
unmarshallIntFunction · 0.85
clearFunction · 0.50

Tested by

no test coverage detected