USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-ge00f1f37
UHD and USRP Manual
byte_vector.hpp File Reference
#include <algorithm>
#include <string>
#include <vector>
#include <boost/assign.hpp>
#include <stdint.h>
#include <uhd/config.hpp>

Go to the source code of this file.

Namespaces

 uhd
 

Typedefs

typedef std::vector< uint8_t > uhd::byte_vector_t
 Byte vector used for I2C data passing and EEPROM parsing. More...
 

Functions

template<typename RangeSrc , typename RangeDst >
UHD_INLINE void uhd::byte_copy (const RangeSrc &src, RangeDst &dst)
 
UHD_API std::string uhd::bytes_to_string (const byte_vector_t &bytes)
 Create a string from a byte vector, terminate when invalid ASCII encountered. More...
 
UHD_API byte_vector_t uhd::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. More...