22 #ifndef NDN_CXX_UTIL_SEGMENTER_HPP
23 #define NDN_CXX_UTIL_SEGMENTER_HPP
54 segment(span<const uint8_t> buffer,
56 size_t maxSegmentSize,
72 size_t maxSegmentSize,
#define NDN_CXX_NODISCARD
Represents an absolute name.
Signing parameters passed to KeyChain.
Utility class to segment an object into multiple Data packets.
Segmenter(KeyChain &keyChain, const security::SigningInfo &signingInfo)
Constructor.
std::vector< std::shared_ptr< Data > > segment(span< const uint8_t > buffer, const Name &dataName, size_t maxSegmentSize, time::milliseconds freshnessPeriod, uint32_t contentType=tlv::ContentType_Blob)
Splits a blob of bytes into one or more Data packets (segments).
boost::chrono::milliseconds milliseconds
@ ContentType_Blob
payload