| 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 ) { |
no test coverage detected