6 #ifndef IROHA_SHARED_MODEL_BYTE_RANGE_HPP 7 #define IROHA_SHARED_MODEL_BYTE_RANGE_HPP 10 #include <string_view> 16 using ByteRange = std::basic_string_view<std::byte>;
18 template <
typename Source>
21 sizeof(std::byte) ==
sizeof(std::decay_t<decltype(str.data()[0])>),
22 "Type size mismatch!");
23 return ByteRange{
reinterpret_cast<const std::byte *
>(str.data()),
ByteRange makeByteRange(const Source &str)
Definition: byte_range.hpp:19
Definition: byte_range.hpp:14
Definition: command_executor.hpp:13
std::basic_string_view< std::byte > ByteRange
Definition: byte_range.hpp:16