Append is merely a version of memcpy that returns the address of the byte after the area just overwritten. It comes in multiple flavors to minimize call overhead.
| 26 | // after the area just overwritten. It comes in multiple flavors to minimize |
| 27 | // call overhead. |
| 28 | static char *Append1(char *out, const AlphaNum &x) { |
| 29 | memcpy(out, x.data(), x.size()); |
| 30 | return out + x.size(); |
| 31 | } |
| 32 | |
| 33 | static char *Append2(char *out, const AlphaNum &x1, const AlphaNum &x2) { |
| 34 | memcpy(out, x1.data(), x1.size()); |
no test coverage detected