tcan/include/tcan/GenericMsg.hpp
GenericMsg(const unsigned int length, const uint8_t* data):
        length_(length),
        data_(new uint8_t[length_])
    {
        std::copy(&data[0], &data[length_], data_);
    }
/*!
	 * Constructor copying data to internal buffer
	 * @param length    data length
	 * @param data      data to be copied
	 */
Constructor copying data to internal buffer
@param length    data length
@param data      data to be copied
Constructor copying data to internal buffer @param length data length @param data data to be copied
GenericMsg(const unsigned int length, const uint8_t* data):
        length_(length),
        data_(new uint8_t[length_])
    {
        std::copy(&data[0], &data[length_], data_);
    }
GenericMsg ( const unsigned int length , const uint8_t * data ) : length_ ( length ) , data_ ( new uint8_t [ length_ ] ) { std :: copy ( & data [ 0 ] , & data [ length_ ] , data_ ) ; }
Constructor copying data to internal buffer
 @param length    data length
 @param data      data to be copied
Constructor copying data to internal buffer @param length data length @param data data to be copied