With this copy we take only several bytes from source.
If we have 20 Mb buffer as source, then std::string constructor (for function parameter) will copy whole buffer content.