MCPcopy Create free account
hub / github.com/aardappel/lobster / StructToString

Method StructToString

dev/src/vmdata.cpp:610–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610void VM::StructToString(string &sd, PrintPrefs &pp, const TypeInfo &ti, const Value *elems) {
611 sd += ReverseLookupType(ti.structidx);
612 if (pp.indent) sd += ' ';
613 VectorOrObjectToString(*this, sd, pp, '{', '}', ti.len, 1, elems, false,
614 [&](iint i) -> const TypeInfo & {
615 return GetTypeInfo(ti.GetElemOrParent(i));
616 }
617 );
618}
619
620void ElemToFlexBuffer(ToFlexBufferContext &fbc, const TypeInfo &ti, iint &i, iint width,
621 const Value *elems, string_view key, type_elem_t defval) {

Callers 2

DumpStackTraceMethod · 0.45
VectorOrObjectToStringFunction · 0.45

Calls 2

VectorOrObjectToStringFunction · 0.85
GetElemOrParentMethod · 0.80

Tested by

no test coverage detected