MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / appendData

Function appendData

source/util/bstring.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template <typename T>
84void appendData(BString& s, T i) {
85 char tmp[32] = {};
86 std::to_chars(tmp, tmp + 32, i);
87 int len = (int)strlen(tmp);
88 s.makeWritable(len);
89 strcpy(s.data->str + s.data->len, tmp);
90 s.data->len += len;
91 s.data->str[s.data->len] = 0;
92}
93
94template <typename T>
95void appendData(BString& s, T i, int base) {

Callers 1

appendMethod · 0.85

Calls 1

makeWritableMethod · 0.80

Tested by

no test coverage detected