17 #ifndef LOGRECORD_HPP_
18 #define LOGRECORD_HPP_
23 #include "kaa/log/gen/LogDefinitions.hpp"
43 encodedRecord_.assign(data, data + size);
46 std::vector<std::uint8_t>&
getData() {
return encodedRecord_; }
48 std::vector<std::uint8_t>&&
getRvalueData(){
return std::move(encodedRecord_); }
50 std::size_t
getSize()
const {
return encodedRecord_.size(); }
53 std::vector<std::uint8_t> encodedRecord_;
std::size_t getSize() const
SharedDataBuffer toByteArray(const T &datum)
LogRecord(const std::uint8_t *data, size_t size)
LogRecord(const KaaUserLogRecord &record)
std::vector< std::uint8_t > && getRvalueData()
std::vector< std::uint8_t > & getData()