I wouldn't repeat the contents of cv_namestring. Instead I would make a function which is declared in the same cpp and marked inline, which directly uses the write functions of OutBuffer, just like walter suggested.