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

Method StringBuilder

src/string_builder.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include <cstring>
19
20StringBuilder::StringBuilder(char* buf, size_t size) : buffer(buf), current(buf), remaining(size) {
21 if (remaining > 0) {
22 buffer[0] = '\0';
23 }
24}
25
26StringBuilder& StringBuilder::operator<<(const char* str) {
27 if (str && remaining > 1) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected