MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / append_2

Method append_2

libhsclient/string_buffer.hpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 end_offset += len;
98 }
99 void append_2(const char *s1, const char *f1, const char *s2,
100 const char *f2) {
101 const size_t l1 = f1 - s1;
102 const size_t l2 = f2 - s2;
103 reserve(end_offset + l1 + l2);
104 memcpy(buffer + end_offset, s1, l1);
105 memcpy(buffer + end_offset + l1, s2, l2);
106 end_offset += l1 + l2;
107 }
108 private:
109 char *buffer;
110 size_t begin_offset;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected