1 #include "LastMessage.h"
3 #include "ByteBuffer.h"
6 * This Entry records the last message sent by a given machine.
7 * @author Brian Demsky <bdemsky@uci.edu>
11 Entry *LastMessage_decode(Slot *slot, ByteBuffer *bb) {
12 int64_t machineid = bb->getLong();
13 int64_t seqnum = bb->getLong();
14 return new LastMessage(slot, machineid, seqnum);
17 void LastMessage::encode(ByteBuffer *bb) {
18 bb->put(TypeLastMessage);
19 bb->putLong(machineid);