MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / abWrite

Method abWrite

tools/shell/linenoise.cpp:1385–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1383 void abAppend(const char* s) { buffer.append(s); }
1384
1385 void abWrite(int fd) {
1386 if (write(fd, buffer.c_str(), buffer.size()) == -1) {
1387 /* Can't recover from write error. */
1388 lndebug("%s", "Failed to write buffer\n");
1389 }
1390 }
1391
1392private:
1393 std::string buffer;

Callers 3

refreshSingleLineFunction · 0.80
refreshMultiLineFunction · 0.80
refreshSearchMultiLineFunction · 0.80

Calls 2

writeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected