Given the data is intended to be directly written, there's no need to take the std::vector by value and copy the data.