24#ifndef TRANSACTION_MESSAGE_INCLUDED 
   25#define TRANSACTION_MESSAGE_INCLUDED 
   71  uint64_t 
length() 
override;
 
   90                      const unsigned char *) 
override;
 
This class serves as data container for information flowing in the GCS ecosystem.
Definition: gcs_message.h:48
 
Definition: transaction_message_interface.h:41
 
Definition: transaction_message.h:33
 
Gcs_message_data * m_gcs_message_data
Definition: transaction_message.h:93
 
uint64_t length() override
Length of the message.
Definition: transaction_message.cc:63
 
void encode_payload(std::vector< unsigned char > *buffer) const override
Encodes the contents of this instance payload into the buffer.
Definition: transaction_message.cc:79
 
bool write(const unsigned char *buffer, my_off_t length) override
Overrides Basic_ostream::write().
Definition: transaction_message.cc:54
 
Gcs_message_data * get_message_data_and_reset() override
Get the Gcs_message_data object, which contains the serialized transaction data.
Definition: transaction_message.cc:72
 
enum_payload_item_type
Definition: transaction_message.h:35
 
@ PIT_MAX
Definition: transaction_message.h:43
 
@ PIT_UNKNOWN
Definition: transaction_message.h:37
 
@ PIT_TRANSACTION_DATA
Definition: transaction_message.h:40
 
void decode_payload(const unsigned char *buffer, const unsigned char *) override
Decodes the contents of the buffer and sets the payload field values according to the values decoded.
Definition: transaction_message.cc:84
 
Transaction_message(uint64_t payload_capacity)
Constructor.
Definition: transaction_message.cc:28
 
~Transaction_message() override
Definition: transaction_message.cc:49
 
ulonglong my_off_t
Definition: my_inttypes.h:72
 
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:420