7 #ifndef PACKAGER_UTILS_BYTES_TO_STRING_VIEW_H_
8 #define PACKAGER_UTILS_BYTES_TO_STRING_VIEW_H_
10 #include <string_view>
18 return {
reinterpret_cast<const char*
>(bytes), bytes_size};
23 const std::vector<uint8_t>& bytes) {
All the methods that are virtual are virtual for mocking.
std::string_view byte_vector_to_string_view(const std::vector< uint8_t > &bytes)
Convert byte vector to string_view.
std::string_view byte_array_to_string_view(const uint8_t *bytes, size_t bytes_size)
Convert byte array to string_view.