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

Method write

crawl-ref/source/dlua.cc:68–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void dlua_chunk::write(writer& outf) const
69{
70 if (empty())
71 {
72 marshallByte(outf, CT_EMPTY);
73 return;
74 }
75
76 if (!compiled.empty())
77 {
78 marshallByte(outf, CT_COMPILED);
79 marshallString4(outf, compiled);
80 }
81 else
82 {
83 marshallByte(outf, CT_SOURCE);
84 marshallString4(outf, chunk);
85 }
86
87 marshallString4(outf, file);
88 marshallInt(outf, first);
89}
90
91void dlua_chunk::read(reader& inf)
92{

Callers 15

save_doll_fileFunction · 0.45
_edit_saveFunction · 0.45
_write_map_preludeFunction · 0.45
saveMethod · 0.45
operator <<Function · 0.45
audioWriteShortBufferMethod · 0.45
audioWriteByteBufferMethod · 0.45
simpleCopyMethod · 0.45
mainFunction · 0.45
configure.pyFile · 0.45
maybe_writeFunction · 0.45

Calls 5

marshallByteFunction · 0.85
marshallString4Function · 0.85
marshallIntFunction · 0.85
emptyFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected