MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / das_string_builder

Function das_string_builder

include/daScript/simulate/aot.h:2126–2138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2124 DAS_API char * das_lexical_cast_int_u64 ( uint64_t x, bool hex, Context * __context__, LineInfoArg * at );
2125
2126 __forceinline char * das_string_builder ( Context * __context__, const SimNode_AotInteropBase & node ) {
2127 StringBuilderWriter writer;
2128 DebugDataWalker<StringBuilderWriter> walker(writer, PrintFlags::string_builder);
2129 for ( int i=0, is=node.nArguments; i!=is; ++i ) {
2130 walker.walk(node.argumentValues[i], node.types[i]);
2131 }
2132 auto length = writer.tellp();
2133 if ( length ) {
2134 return __context__->allocateString(writer.c_str(),uint32_t(length), &node.debugInfo);
2135 } else {
2136 return nullptr;
2137 }
2138 }
2139
2140 __forceinline char * das_string_builder_temp ( Context * __context__, const SimNode_AotInteropBase & node ) {
2141 StringBuilderWriter writer;

Callers

nothing calls this directly

Calls 4

tellpMethod · 0.80
allocateStringMethod · 0.80
walkMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected