39 destination_{destination},
44 u64FragmentSequence_{}
46 for(
const auto & entry : vectorIO)
48 data_.insert(data_.end(),
49 reinterpret_cast<std::uint8_t*
>(entry.iov_base),
50 reinterpret_cast<std::uint8_t*>(entry.iov_base) + entry.iov_len);
60 size_t fragmentOffset,
61 std::uint64_t u64FragmentSequence,
64 destination_{destination},
66 fragmentIndex_{fragmentIndex},
67 fragmentOffset_{fragmentOffset},
68 bMoreFragments_{bMore},
69 u64FragmentSequence_{u64FragmentSequence}
71 for(
const auto & entry : vectorIO)
73 data_.insert(data_.end(),
74 reinterpret_cast<std::uint8_t*
>(entry.iov_base),
75 reinterpret_cast<std::uint8_t*>(entry.iov_base) + entry.iov_len);
102 return fragmentOffset_ || bMoreFragments_;
108 return fragmentIndex_;
114 return fragmentOffset_;
120 return u64FragmentSequence_;
126 return bMoreFragments_;
bool isMoreFragments() const
size_t getFragmentIndex() const
std::uint64_t getFragmentSequence() const
std::vector< uint8_t > Data
std::vector< iovec > VectorIO
Priority getPriority() const
NEMId getDestination() const
size_t getFragmentOffset() const
const Data & getData() const
MessageComponent(Type type, NEMId destination, Priority priority, const Utils::VectorIO &vectorIO)