Class faabric::transport::Message

class Message

Represents message data passed around the transport layer. Essentially an array of bytes, with a size and a flag to say whether there’s more data to follow.

Messages are not copyable, only movable, as they will regularly contain large amounts of data.

Public Functions

Message(size_t bufferSize)
Message(nng_msg *nngMsg)
Message(MessageResponseCode responseCodeIn)
~Message()
Message(const Message &other) = delete
Message &operator=(const Message &other) = delete
inline Message(Message &&other)
inline Message &operator=(Message &&other)
inline MessageResponseCode getResponseCode()
inline std::span<uint8_t> allData()
inline std::span<const uint8_t> allData() const
std::span<char> data()
std::span<const char> data() const
std::span<uint8_t> udata()
std::span<const uint8_t> udata() const
std::vector<uint8_t> dataCopy() const
inline uint8_t getMessageCode() const
inline uint64_t getDeclaredDataSize() const
inline int getSequenceNum() const