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

Function presentStr

src/simulate/heap.cpp:327–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 char * presentStr ( char * buf, char * ch, int size ) {
328 auto str = escapeString(ch);
329 strncpy(buf,str.c_str(),size);
330 buf[size-4] = '.';
331 buf[size-3] = '.';
332 buf[size-2] = '.';
333 buf[size-1] = 0;
334 return buf;
335 }
336
337 char * PersistentStringAllocator::impl_allocate ( uint64_t size ) {
338 if ( limit==0 || model.bytesAllocated()+size<=limit ) {

Callers 2

StringMethod · 0.85
reportMethod · 0.85

Calls 2

escapeStringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected