prevhmac(_prevhmac),
hmac(_hmac),
machineid(_machineid),
- entries(new Vector<Entry *>()),
+ entries(new MyVector<Entry *>()),
livecount(1),
seqnumlive(true),
freespace(SLOT_SIZE - getBaseSize()),
prevhmac(_prevhmac),
hmac(NULL),
machineid(_machineid),
- entries(new Vector<Entry *>()),
+ entries(new MyVector<Entry *>()),
livecount(1),
seqnumlive(true),
freespace(SLOT_SIZE - getBaseSize()),
prevhmac(new Array<char>(HMAC_SIZE)),
hmac(NULL),
machineid(_machineid),
- entries(new Vector<Entry *>()),
+ entries(new MyVector<Entry *>()),
livecount(1),
seqnumlive(true),
freespace(SLOT_SIZE - getBaseSize()),
return newfreespace >= 0;
}
-Vector<Entry *> *Slot::getEntries() {
+MyVector<Entry *> *Slot::getEntries() {
return entries;
}
bb->get(prevhmac);
if (!realmac->equals(hmac))
//throw new Error("Server Error: Invalid HMAC! Potential Attack!");
- error("Server Error: Invalid HMAC! Potential Attack!\n");
+ myerror("Server Error: Invalid HMAC! Potential Attack!\n");
delete realmac;
int64_t seqnum = bb->getLong();
* itself.
*/
-Vector<Entry *> *Slot::getLiveEntries(bool resize) {
- Vector<Entry *> *liveEntries = new Vector<Entry *>();
+MyVector<Entry *> *Slot::getLiveEntries(bool resize) {
+ MyVector<Entry *> *liveEntries = new MyVector<Entry *>();
for (uint ei = 0; ei < entries->size(); ei++) {
Entry *entry = entries->get(ei);
if (entry->isLive()) {