8 #ifndef INCLUDED_UHD_TYPES_BYTE_VECTOR_HPP 9 #define INCLUDED_UHD_TYPES_BYTE_VECTOR_HPP 15 #include <boost/assign.hpp> 25 template<
typename RangeSrc,
typename RangeDst>
UHD_INLINE 27 std::copy(boost::begin(src), boost::end(src), boost::begin(dst));
UHD_API std::string bytes_to_string(const byte_vector_t &bytes)
Create a string from a byte vector, terminate when invalid ASCII encountered.
UHD_API byte_vector_t string_to_bytes(const std::string &str, size_t max_length)
Create a byte vector from a string, end at null terminator or max length.
UHD_INLINE void byte_copy(const RangeSrc &src, RangeDst &dst)
Definition: byte_vector.hpp:26
Definition: build_info.hpp:14
#define UHD_INLINE
Definition: config.h:53
#define UHD_API
Definition: config.h:63
std::vector< uint8_t > byte_vector_t
Byte vector used for I2C data passing and EEPROM parsing.
Definition: byte_vector.hpp:23