-// ANNA - Anna is Not 'N' Anymore
+// ANNA - Anna is Not Nothingness Anymore
//
// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
//
return result;
}
-const comm::Variable* comm::CompatCodec::attach(const char* name, const short int id, Integer64& value)
+const comm::Variable* comm::CompatCodec::attach(const char* name, const short int id, S64& value)
throw(RuntimeException) {
- const Integer64 backup(value);
+ const S64 backup(value);
const Variable* result = insert(name, id, a_variables, value);
value = backup;
return result;
register Variable* variable;
int stringLen;
const char* string;
- char aux [sizeof(Integer64)];
+ char aux [sizeof(S64)];
if(a_scramble == true) // (1)
while(c == 0) c = rand() % 0xff;
break;
case Variable::Type::Integer64:
self += variable->codec();
- self.append(comm::functions::codeInteger64(aux, variable->getInteger64()), sizeof(Integer64));
+ self.append(comm::functions::codeInteger64(aux, variable->getInteger64()), sizeof(S64));
break;
case Variable::Type::Boolean:
self.append(comm::functions::codeShort(aux, variable->getId()), sizeof(short int)); // (3)
break;
case Variable::Type::Integer64:
variable->setValue(comm::functions::decodeInteger64(++ data));
- data += sizeof(Integer64);
+ data += sizeof(S64);
break;
case Variable::Type::Boolean:
variable->setBoolean((*data & 0x80) ? true : false);
break;
case Variable::Type::Integer64:
variable->setValue(comm::functions::decodeInteger64(++ data));
- data += sizeof(Integer64);
+ data += sizeof(S64);
break;
case Variable::Type::Boolean:
variable->setBoolean((*data & 0x80) ? true : false);