MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / DumpString

Function DumpString

Source/Misc/lua/src/lua.c:5725–5738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5723}
5724
5725static void DumpString(const TString* s, DumpState* D)
5726{
5727if (s==NULL || getstr(s)==NULL)
5728{
5729size_t size=0;
5730DumpVar(size,D);
5731}
5732else
5733{
5734size_t size=s->tsv.len+1; /* include trailing '\0' */
5735DumpVar(size,D);
5736DumpBlock(getstr(s),size,D);
5737}
5738}
5739
5740#define DumpCode(f,D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D)
5741

Callers 3

DumpConstantsFunction · 0.85
DumpDebugFunction · 0.85
DumpFunctionFunction · 0.85

Calls 1

DumpBlockFunction · 0.85

Tested by

no test coverage detected