MCPcopy Create free account
hub / github.com/SIPp/sipp / insert

Method insert

src/infile.cpp:317–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316
317void FileContents::insert(char *value)
318{
319 if (printfFile) {
320 ERROR("Can not insert or replace into a printf file: %s", fileName);
321 }
322 fileLines.push_back(value);
323 realLinesInFile++;
324 numLinesInFile++;
325 if (indexField != -1) {
326 reIndex(realLinesInFile - 1);
327 }
328 char line[1024];
329 getLine(realLinesInFile - 1, line, sizeof(line));
330 char tmp[1024];
331 getField(realLinesInFile - 1, 0, tmp, sizeof(tmp));
332}
333
334void FileContents::replace(int line, char *value)
335{

Callers 15

add_owner_to_socketMethod · 0.80
get_owners_for_socketFunction · 0.80
reIndexMethod · 0.80
taskMethod · 0.80
add_to_runqueueMethod · 0.80
add_paused_taskMethod · 0.80
executeActionMethod · 0.80
startListeningMethod · 0.80
write_errorMethod · 0.80
read_errorMethod · 0.80
pseudorandomFunctionMethod · 0.80

Calls 1

ERRORFunction · 0.85

Tested by

no test coverage detected