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

Function dlua_compiled_chunk_writer

crawl-ref/source/dlua.cc:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "stringutil.h"
15
16static int dlua_compiled_chunk_writer(lua_State *ls, const void *p,
17 size_t sz, void *ud)
18{
19 UNUSED(ls);
20 ostringstream &out = *static_cast<ostringstream*>(ud);
21 out.write(static_cast<const char *>(p), sz);
22 return 0;
23}
24
25///////////////////////////////////////////////////////////////////////////
26// dlua_chunk

Callers

nothing calls this directly

Calls 2

UNUSEDFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected