22 #ifndef NDN_CXX_UTIL_SEGMENTER_HPP
23 #define NDN_CXX_UTIL_SEGMENTER_HPP
52 [[nodiscard]] std::vector<std::shared_ptr<Data>>
53 segment(span<const uint8_t> buffer,
55 size_t maxSegmentSize,
68 [[nodiscard]] std::vector<std::shared_ptr<Data>>
71 size_t maxSegmentSize,
Represents an absolute name.
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).
The main interface for signing key management.
Signing parameters passed to KeyChain.
::boost::chrono::milliseconds milliseconds
@ ContentType_Blob
payload