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()
-
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
-
Message(size_t bufferSize)