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

Method impl_freeString

src/simulate/heap.cpp:320–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319
320 void StringHeapAllocator::impl_freeString ( char * text, uint64_t length ) {
321 // Symmetric with impl_allocateString: huge strings are never interned,
322 // so the erase is a no-op for them. Guard the cast to make that explicit.
323 if ( needIntern && length <= UINT32_MAX ) internMap.erase(StrHashEntry(text,uint32_t(length)));
324 impl_free ( text, length + 1 );
325 }
326
327 char * presentStr ( char * buf, char * ch, int size ) {
328 auto str = escapeString(ch);

Callers 1

freeStringFunction · 0.80

Calls 2

StrHashEntryClass · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected