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.
| 55 | // after the area just overwritten. It comes in multiple flavors to minimize |
| 56 | // call overhead. |
| 57 | static char *Append1(char *out, const AlphaNum &x) { |
| 58 | memcpy(out, x.data(), x.size()); |
| 59 | return out + x.size(); |
| 60 | } |
| 61 | |
| 62 | static char *Append2(char *out, const AlphaNum &x1, const AlphaNum &x2) { |
| 63 | memcpy(out, x1.data(), x1.size()); |