#ifndef REMOTING_HOST_FILE_TRANSFER_TEST_BYTE_VECTOR_UTILS_H_
#define REMOTING_HOST_FILE_TRANSFER_TEST_BYTE_VECTOR_UTILS_H_
#include <cstdint>
#include <vector>
namespace remoting {
inline void AppendBytes(std::vector<uint8_t>& vec) {}
template <typename Iterable, typename... Iterables>
void AppendBytes(std::vector<uint8_t>& vec,
const Iterable& first,
const Iterables&... rest) {
using std::begin;
using std::end;
vec.insert(vec.end(), begin(first), end(first));
AppendBytes(vec, rest...);
}
template <typename... Iterables>
std::vector<std::uint8_t> ByteArrayFrom(const Iterables&... iterables) {
std::vector<std::uint8_t> vec;
AppendBytes(vec, iterables...);
return vec;
}
}
#endif