X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FSlot.cc;h=ea698cc7e97b4de212934693f47149b76d2970d0;hp=542705e44ce3698dbb2ec269ee302cd86ef09583;hb=2d567b75be4055f6a40ffe1cedb5cdc9be262d86;hpb=1ae973a3cc837cb62ef220dedbb731ab3f833719;ds=sidebyside diff --git a/version2/src/C/Slot.cc b/version2/src/C/Slot.cc index 542705e..ea698cc 100644 --- a/version2/src/C/Slot.cc +++ b/version2/src/C/Slot.cc @@ -30,7 +30,7 @@ Slot::Slot(Table *_table, int64_t _seqnum, int64_t _machineid, Array *_pre freespace(SLOT_SIZE - getBaseSize()), table(_table), localSequenceNumber(_localSequenceNumber) { - } +} Slot::Slot(Table *_table, int64_t _seqnum, int64_t _machineid, int64_t _localSequenceNumber) : seqnum(_seqnum), @@ -43,7 +43,7 @@ Slot::Slot(Table *_table, int64_t _seqnum, int64_t _machineid, int64_t _localSeq freespace(SLOT_SIZE - getBaseSize()), table(_table), localSequenceNumber(_localSequenceNumber) { - } +} Entry *Slot::addEntry(Entry *e) { e = e->getCopy(this); @@ -102,7 +102,7 @@ Slot *Slotdecode(Table *table, Array *array, Mac *mac) { return slot; } -Array *Slot::encode(Mac * mac) { +Array *Slot::encode(Mac *mac) { Array *array = new Array(SLOT_SIZE); ByteBuffer *bb = ByteBuffer_wrap(array); /* Leave space for the slot HMAC. */